Autogenerated Go wrapper for the telegram API. Inspired by the python-telegram-bot library.
Full Changelog: https://github.com/PaulSonOfLars/gotgbot/compare/v2.0.0-rc.25...v2.0.0-rc.26
Full Changelog: https://github.com/PaulSonOfLars/gotgbot/compare/v2.0.0-rc.24...v2.0.0-rc.25
Add support for Bot API 7.0 and all the related changes: https://core.telegram.org/bots/api#december-29-2023
Changes:
Note: context.EffectiveMessage has been left as type gotgbot.Message, rather than gotgbot.MaybeInaccessibleMessage, to avoid fighting with types. In the case of an InaccessibleMessage (from callbackqueries), the message will only contain the fields provided by the inaccessible message.
NewUpdater()
now takes a dispatcher as an argument. Most users should be able to migrate using this instead:
// Create updater and dispatcher.
dispatcher := ext.NewDispatcher(&ext.DispatcherOpts{
// If an error is returned by a handler, log it and continue going.
Error: func(b *gotgbot.Bot, ctx *ext.Context, err error) ext.DispatcherAction {
log.Println("an error occurred while handling update:", err.Error())
return ext.DispatcherActionNoop
},
MaxRoutines: ext.DefaultMaxRoutines,
})
updater := ext.NewUpdater(dispatcher, nil)
Full Changelog: https://github.com/PaulSonOfLars/gotgbot/compare/v2.0.0-rc.22...v2.0.0-rc.23
Lots to be announced in this release - some big changes that have significantly improved the maturity of the lib. Namely:
Please note that this version does include some breaking changes; if you're having issues upgrading, let us know in the t.me/gotgbotChat and I'll be happy to help you upgrade.
Fingers crossed this gets us yet another step closer to a stable version!
This is the first beta release of v2 of this package, producing a completely reevaluated, autogenerated library which should allow for easier updating.
The new setup is now as follows:
ext/
directoryRelease of the original gotgbot library.
If you are creating a new project, I highly recommend using gotgbot@v2 instead, which comes with many great improvements, as well as being fully generated code.