Repository navigation
Breaking changes
See the Bot API 10.5 migration guide for examples.
GetMereturns*models.BotFullInfoinstead of*models.User. The deprecated
GetMeLegacyreturns*models.Userand populates its nine legacy bot settings (#324, #328).- Expandable rich-message quotations use
Blocksinstead ofText. The deprecated
Textfield is not populated on read. Sending nonzeroTextwithout blocks returns
Text is deprecated; use Blocksbefore any HTTP request. When both are set, only
Blocksis sent, including any nested file uploads (#324, #328).
Bot API 10.5
BotFullInfoexposes active usernames, the inline query placeholder, whether inline
queries need a location, topic sidebar status, and whether the bot has a main Web App (#324).- Command handlers recognize commands addressed to any active username returned by
GetMe(#327). SetMySettingsupdates only the settings you supply. Usebot.False()to send an
explicitfalse, a pointer to zero to disable inline feedback, or a pointer to an
empty string to restore the default inline query placeholder (#324).- Depending on
callback_query_mode, callback queries from the bot's own messages can
carryinline_message_idinstead ofmessage.WriteAccessAllowed.Inviteridentifies
the bot owner who invited the user into the private chat (#324).