Telegram.Bot icon indicating copy to clipboard operation
Telegram.Bot copied to clipboard

Bot API 6.2 (August 12, 2022)

Open karb0f0s opened this issue 3 years ago • 1 comments

Bot API 6.2 (August 12, 2022)

Custom Emoji Support

  • Added the MessageEntity type “custom_emoji”.
  • Added the field custom_emoji_id to the class MessageEntity for “custom_emoji” entities.
  • Added the method getCustomEmojiStickers.
  • Added the fields type and custom_emoji_id to the class Sticker.
  • Added the field sticker_type to the class StickerSet, describing the type of stickers in the set.
  • The field contains_masks has been removed from the documentation of the class StickerSet. The field is still returned in the object for backward compatibility, but new bots should use the field sticker_type instead.
  • Added the parameter sticker_type to the method createNewStickerSet.
  • The parameter contains_masks has been removed from the documentation of the method createNewStickerSet. The parameter will still work for backward compatibility, but new bots should use the parameter sticker_type instead.

Web App Improvements

  • Added the field isClosingConfirmationEnabled and the methods enableClosingConfirmation, disableClosingConfirmation, showPopup, showAlert, showConfirm to the class WebApp.
  • Added the field is_premium to the class WebAppUser.
  • Added the event popupClosed.

Other Changes

  • Added the field has_restricted_voice_and_video_messages to the class Chat to support the new setting.

karb0f0s avatar Aug 12 '22 14:08 karb0f0s

How to enable Settings Button for web-apps? According to docs we can ask BotFather to enable it, but there is no option for that.

You can add a 'Settings' item to the context menu of your Web App using @BotFather. When users select this option from the menu, your bot will receive a settingsButtonClicked event.

DmitryTrish avatar Aug 30 '22 12:08 DmitryTrish

How to enable Settings Button for web-apps? According to docs we can ask BotFather to enable it, but there is no option for that.

You can add a 'Settings' item to the context menu of your Web App using @BotFather. When users select this option from the menu, your bot will receive a settingsButtonClicked event.

Did you find the solution?

remotenode avatar Sep 25 '22 19:09 remotenode

Nope :/

Счастья! Дмитрий. On 26 Sep 2022, 2:06 AM +0700, Artsyom Avanesov @.***>, wrote:

How to enable Settings Button for web-apps? According to docs we can ask BotFather to enable it, but there is no option for that.

You can add a 'Settings' item to the context menu of your Web App using @BotFather. When users select this option from the menu, your bot will receive a settingsButtonClicked event. Did you find the solution? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

DmitryTrish avatar Sep 25 '22 19:09 DmitryTrish

Resolved by #1147.

tuscen avatar Dec 04 '22 01:12 tuscen