Skip to content

v2.0.0-rc.24 - Bot API 7.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@PaulSonOfLars PaulSonOfLars released this 20 Jan 10:23
· 16 commits to v2 since this release
a61db17

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.