github avbor/docker-telegram-bot-api v10.5

44 minutes ago

Bot API 10.5

Bot Settings

  • Added the method setMySettings, allowing bots to change their settings, including inline mode settings, privacy mode, the ability to be added to groups, forum topic mode in private chats, and the mode of receiving callback queries.
  • Added the ability to receive callback queries from buttons in messages sent by the bot with the field inline_message_id instead of the field message in the class CallbackQuery, depending on the parameter callback_query_mode of the method setMySettings.
  • Added the ability for bots to show the list of topics in a sidebar in private chats with the bot using the parameter has_topic_sidebar of the method setMySettings.
  • Split out the class BotFullInfo from the class User and changed the return type of the method getMe to BotFullInfo. The fields that were returned only in getMe were removed from the class User.
  • Added the field active_usernames to the class BotFullInfo, allowing the bot to get the list of all its active usernames.
  • Added the field inline_query_placeholder to the class BotFullInfo, allowing the bot to get its placeholder for inline queries.
  • Added the field needs_inline_query_location to the class BotFullInfo, allowing the bot to check whether it requests the location of the user with every inline query.
  • Added the field has_topic_sidebar to the class BotFullInfo, allowing the bot to check whether topics in private chats with the bot are shown in a sidebar.

General

  • Added the ability for bot owners to invite up to 10 users at once to private chats with the bot by pressing the link https://t.me/botinvite/<bot_username>. The bot can send messages to the invited users.
  • Added the field inviter to the class WriteAccessAllowed for service messages about users invited to the private chat with the bot by the owner of the bot.
  • Replaced the field text with the field blocks in the classes RichBlockExpandableBlockQuotation and InputRichBlockExpandableBlockQuotation, allowing expandable block quotations to contain arbitrary blocks.

Bot API 10.4

Widgets

Ephemeral messages

Quotes from rich messages

  • Added the field rich_texts to the class TextQuote for quotes chosen from a RichMessage.
  • Added the field quote_rich_texts to the class ReplyParameters, allowing bots to quote rich messages.

TON wallet

Chat share themes

Gifts

  • Added the method getUniqueGift, allowing bots to get information about a unique gift by its name.
  • Added the method deleteBusinessAccountGift, allowing bots to delete regular gifts owned by a managed business account without receiving Telegram Stars for them.

General

  • Allowed users with a Telegram Premium subscription to assign secondary usernames ending with “agent”, “ai”, “app”, “game”, or “gay” to up to 2 owned bots. Such usernames can be suggested in the field suggested_username of the class KeyboardButtonRequestManagedBot.
  • Added the class RichTextTonAddress representing an address in the TON blockchain in a RichMessage.
  • Added the type “ton_address” to the class MessageEntity for addresses in the TON blockchain.
  • Added the type “bank_card_number” to the class MessageEntity for bank card numbers.
  • Added the parameters custom_description_parse_mode and custom_description_entities to the methods verifyUser and verifyChat.
  • Added the class PaidMessagesWaived and the field paid_messages_waived to the class Message for service messages about the sender using a link which allows sending messages without paying Telegram Stars.
  • Added the ability to create links to topics in private chats with the bot in the format https://t.me/<bot_username>/<message_thread_id>. Such a link opens the topic only for the user in the private chat with whom the topic exists.

Don't miss a new docker-telegram-bot-api release

NewReleases is sending notifications on new releases.