TGTGInsighttelegram intelligenceLIVE / telegram public index
← BotNews
BotNews avatar

TGINSIGHT POST

Post #74

@BotNews

BotNews

Views185,000Post view count
PostedAug 1208/12/2022, 02:29 PM
Post content

Post content

Bot API 6.2 Custom Emoji • Bots can identify custom emoji sent by Telegram Premium users via the new type "custom_emoji" and field custom_emoji_id added to the MessageEntity class. • Added the method getCustomEmojiStickers to obtain information about specific emoji. • Added the fields type and custom_emoji_id to the Sticker class. • Added sticker_type as a new field for StickerSet and as a new parameter for createNewStickerSet. Web Apps • Implemented support for native dialog windows including alerts, popups with custom buttons and confirmation messages. • A confirmation dialog can now be shown when users close the web app. The dialog can be toggled via the enableClosingConfirmation and disableClosingConfirmation functions. • Added the field is_premium to the WebAppUser class — the standard User class already included this field, see version 6.1. • Added has_restricted_voice_and_video_messages to the Chat class to support the new premium setting. • And more, see the full changelog for details: https://core.telegram.org/bots/api-changelog#august-12-2022 Note: The documentation for createNewStickerSet and StickerSet no longer mentions the contains_masks parameter and field respectively. In both instances, contains_masks will continue to work for backward compatibility but developers should use sticker_type instead.