Releases: PaulSonOfLars/gotgbot
v2.0.0-rc.30
What's Changed
- Regenerate bot api docs by @PaulSonOfLars in #193
- Add WithContext methods by @PaulSonOfLars in #192
- Bot API 7.10 by @PaulSonOfLars in #195
- Use io.Pipe for file uploads by @HirbodBehnam in #194
- Bot API 7.11 by @PaulSonOfLars in #200
- Extend ext.Context to store bot information by @PaulSonOfLars in #198
New Contributors
- @HirbodBehnam made their first contribution in #194
Full Changelog: v2.0.0-rc.29...v2.0.0-rc.30
v2.0.0-rc.29
What's Changed
- Fix some filter package names by @PaulSonOfLars in #173
- Bot API 7.7 + payment message filters by @PaulSonOfLars in #174
- Improve webapp sample comments and usage by @PaulSonOfLars in #171
- Add constants for chat actions by @megum1n in #179
- Update to Bot API 7.8 by @PaulSonOfLars in #184
- Check for command entity first in Command.checkMessage by @Jisin0 in #183
- Update to Bot API 7.9 by @PaulSonOfLars in #187
- update ci deps by @PaulSonOfLars in #188
- Payments bot sample by @PaulSonOfLars in #175
New Contributors
Full Changelog: v2.0.0-rc.28...v2.0.0-rc.29
v2.0.0-rc.28
What's Changed
- Bot API 7.4 by @PaulSonOfLars in #162
- Bot API 7.5 by @PaulSonOfLars in #165
- Bot API 7.6 by @PaulSonOfLars in #170
- Compile-time InputFile validation by @PaulSonOfLars in #163
- Expose custom KeyStrategy functions by @PaulSonOfLars in #166
Full Changelog: v2.0.0-rc.27...v2.0.0-rc.28
bot API 7.3
What's Changed
- Bot API 7.3 by @PaulSonOfLars in #158
- Edit generated docs to remove incorrect mentions of string username support for chatids by @PaulSonOfLars in #161
Full Changelog: v2.0.0-rc.26...v2.0.0-rc.27
v2.0.0-rc.26 - Bot API 7.2
What's Changed
- Add new GetText and GetEntities helper methods by @PaulSonOfLars in #153
- Don't populate default API URL on getMe request by @PaulSonOfLars in #157
- Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 in /samples/metricsBot by @dependabot in #154
- Bot API 7.2 support by @PaulSonOfLars in #155
Full Changelog: v2.0.0-rc.25...v2.0.0-rc.26
v2.0.0-rc.25
What's Changed
- Add triggers helper method by @PaulSonOfLars in #140
- Update callbackquery.go by @TG-BOTSNETWORK in #144
- Add reactions support. by @ti-bone in #142
- Fix broken cbquery receiver change by @PaulSonOfLars in #145
- Update to bot API 7.1 by @PaulSonOfLars in #146
- Populate effectiveX fields with reaction+chatboost data by @PaulSonOfLars in #149
- Add additional GetSender() helpers for new types by @PaulSonOfLars in #150
- Allow for getting the type of an update through a helper method by @PaulSonOfLars in #151
- Improve polling updater.stop() call when long polling by @PaulSonOfLars in #152
New Contributors
- @TG-BOTSNETWORK made their first contribution in #144
Full Changelog: v2.0.0-rc.24...v2.0.0-rc.25
v2.0.0-rc.24 - Bot API 7.0
Add support for Bot API 7.0 and all the related changes: https://core.telegram.org/bots/api#december-29-2023
Changes:
- All required changes to support Bot API 7.0 (some breaking changes). New types, new methods, new interfaces. Support for Reactions and Giveaways.
- Export HTTP Handler for webhooks with existing http servers
- Add new sample bots
- Add payment related filters
- Add topic related filters (Thank you @ti-bone!)
- Add helpers to simplify channel/edited message support with commands
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.
v2.0.0-rc.23
What's Changed
- Allow for removing bots from the webhook server by @PaulSonOfLars in #118
- improve codeblock markdown handling by @PaulSonOfLars in #121
- Create an UpdateDispatcher interface to decouple Dispatcher and Updater components by @PaulSonOfLars in #120
Breaking changes
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: v2.0.0-rc.22...v2.0.0-rc.23
v2.0.0-rc.21
Lots to be announced in this release - some big changes that have significantly improved the maturity of the lib. Namely:
- Bot API 6.8 support #100
- Support for abstracting away the dispatcher handler, making it possible to extend the dispatcher with custom metrics #103 (as demonstrated in #112)
- Thread-safe support for adding/removing handlers #47
- Thread-safe support for adding/remove bots when using the multibot updater #98
- Added support for premium emoji in markdown #96
- Improved polling startup logic by calling deletewebhook to purge pending updates #94
- Add a new filter for "story" type messages #104
- Add a new ResponseParameters field to telegram errors - thank you @liuerfire! #107
- Improved the local workflow by improving golangci-lint checks #110
- Various cleanups and documentation improvements
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!
First beta release of v2
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:
- all telegram types go in the repo root.
- all "extension" types, such as the updater and the dispatcher, go in the
ext/
directory