From 3d025194665f8e69559c17f74547190e51155a43 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Mon, 21 Aug 2023 15:24:14 +0300 Subject: [PATCH] Update Bot API to 6.8. --- TelegramBotAPI.html | 54 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 4 deletions(-) diff --git a/TelegramBotAPI.html b/TelegramBotAPI.html index bceebf2..6440f53 100644 --- a/TelegramBotAPI.html +++ b/TelegramBotAPI.html @@ -53,6 +53,15 @@

@BotNews to be the first to know about the latest updates and join the discussion in @BotTalk

+

August 18, 2023

+

Bot API 6.8

+
    +
  • Added the field story to the class Message for messages with forwarded stories. Currently, it holds no information.
  • +
  • Added the field voter_chat to the class PollAnswer, to contain channel chat voters in Polls. For backward compatibility, the field user in such objects will contain the user 136817688 (@Channel_Bot).
  • +
  • Added the field emoji_status_expiration_date to the class Chat.
  • +
  • Added the method unpinAllGeneralForumTopicMessages.
  • +
  • Increased to 512 characters the maximum length of the startapp parameter in direct Web App links.
  • +

April 21, 2023

Bot API 6.7

    @@ -551,6 +560,11 @@

    Ch Optional. Custom emoji identifier of emoji status of the other party in a private chat. Returned only in getChat. +emoji_status_expiration_date +Integer +Optional. Expiration date of the emoji status of the other party in a private chat, if any. Returned only in getChat. + + bio String Optional. Bio of the other party in a private chat. Returned only in getChat. @@ -789,6 +803,11 @@

    Optional. Message is a sticker, information about the sticker +story +Story +Optional. Message is a forwarded story + + video Video Optional. Message is a video, information about the video @@ -1273,6 +1292,8 @@

    +

    Story

    +

    This object represents a message about a forwarded story in the chat. Currently holds no information.

    Video

    This object represents a video file.

    @@ -1513,14 +1534,19 @@

    Chat +

    + + - + - +
    Optional. The chat that changed the answer to the poll, if the voter is anonymous
    user UserThe user, who changed the answer to the pollOptional. The user that changed the answer to the poll, if the voter isn't anonymous
    option_ids Array of Integer0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.0-based identifiers of chosen answer options. May be empty if the vote was retracted.
    @@ -2290,7 +2316,7 @@

    < switch_inline_query String -Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted.

    Note: This offers an easy way for users to start using your bot in
    inline mode when they are currently in a private chat with it. Especially useful when combined with switch_pm… actions - in this case the user will be automatically returned to the chat they switched from, skipping the chat selection screen. +Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted. switch_inline_query_current_chat @@ -6590,6 +6616,26 @@

    unpinAllGeneralForumTopicMessages

    +

    Use this method to clear the list of pinned messages in a General forum topic. The bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup. Returns True on success.

    + + + + + + + + + + + + + + + + + +
    ParameterTypeRequiredDescription
    chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)

    answerCallbackQuery

    Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned.

    @@ -8095,7 +8141,7 @@

    WebAppInfo -Optional. Description of the Web App that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method web_app_switch_inline_query inside the Web App. +Optional. Description of the Web App that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method switchInlineQuery inside the Web App. start_parameter