Telegram.Bot
Telegram.Bot copied to clipboard
Bot API 6.2 (August 12, 2022)
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.
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.
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?
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: @.***>
Resolved by #1147.