Skip to content

v1.31.0

Latest

Choose a tag to compare

@negasus negasus released this 26 Nov 07:49

Breaking changes

See the Bot API 10.5 migration guide for examples.

  • GetMe returns *models.BotFullInfo instead of *models.User. The deprecated
    GetMeLegacy returns *models.User and populates its nine legacy bot settings (#324, #328).
  • Expandable rich-message quotations use Blocks instead of Text. The deprecated
    Text field is not populated on read. Sending nonzero Text without blocks returns
    Text is deprecated; use Blocks before any HTTP request. When both are set, only
    Blocks is sent, including any nested file uploads (#324, #328).

Bot API 10.5

  • BotFullInfo exposes 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).
  • SetMySettings updates only the settings you supply. Use bot.False() to send an
    explicit false, 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
    carry inline_message_id instead of message. WriteAccessAllowed.Inviter identifies
    the bot owner who invited the user into the private chat (#324).

Other changes

  • Validate and parse Mini App init data with ValidateWebAppInitData (bot token)
    or ValidateWebAppInitDataSignature (Ed25519 public key) (#325).
  • Add support for join request queries (#323).
  • Fix command matching after non-ASCII text and for commands addressed to the bot
    by username (#321, #320).