Bot API 7.0Announcing our biggest
Bot API update yet!
Reactions
β’ Introducing full reaction support for bots.
β’ Bots can now
react to messages with
setMessageReaction.
β’ Message reactions now generate updates for bots.
β’ Added the available_reactions field to the class
Chat.
Replies 2.0β’ Bots can now reply to messages in other chats or topics.
β’ Added the
ExternalReplyInfo class, to track replies across chats.
β’ The new class
ReplyParameters replaces individual reply options in all relevant methods and lets bots
quote parts of any message.
β’ The new field quote of the class
Message lets bots detect incoming quoted text.
Link Preview Customizationβ’ Bots can now set a custom URL to generate link previews in outgoing messages.
β’ Added support for custom
size and
position of link previews.
β’ Added the class
LinkPreviewOptions to support these new options.
Batch Actions
β’ Bots can now delete multiple messages in a single request via
deleteMessages.
β’ Bots can now forward or copy multiple messages in a single request via the respective
forwardMessages and
copyMessages methods.
Boosts & Giveaways
β’ Added support for
Giveaway messages, allowing bots to detect their creation and completion.
β’ Added updates about chat
boost changes via the new classes
ChatBoostUpdated and
ChatBoostRemoved.
β’ Bots can now see if a boost came from a
premium sub, a
gift code, or a
giveaway, as well as check all active user boosts via
getUserChatBoosts.
Generalβ’ Blockquotes are now supported in
MarkdownV2 and
HTML parse modes.
β’ Web Apps won't close when calling openTelegramLink.
β’ Web Apps can now toggle the visibility and on-click behavior of the
Settings Button.
β’ Bots can now request multiple users, see
KeyboardButtonRequestUsers.
β’ The class
Chat has new fields holding profile and background colors, custom emoji, and more.
β’ And a
great deal more. See the full changelog for details:
https://core.telegram.org/bots/api-changelog#december-29-2023Happy Holidays from the Telegram Team π