You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added the field icon_custom_emoji_id to the classes KeyboardButton and InlineKeyboardButton, allowing bots to show a custom emoji on buttons if they are able to use custom emoji in the message.
:param text: Text of the button. If none of the optional fields are used, it will be sent as a message when the button is
2909
-
pressed
2908
+
:param text: Text of the button. If none of the fields other than text, icon_custom_emoji_id, and style are used,
2909
+
it will be sent as a message when the button is pressed
2910
2910
:type text: :obj:`str`
2911
2911
2912
+
:param icon_custom_emoji_id: Optional. Unique identifier of the custom emoji shown before the text of the button.
2913
+
Can only be used by bots that purchased additional usernames on Fragment or in the messages directly sent by the bot to private, group and supergroup chats
2914
+
if the owner of the bot has a Telegram Premium subscription.
2915
+
:type icon_custom_emoji_id: :obj:`str`
2916
+
2912
2917
:param request_contact: Optional. If True, the user's phone number will be sent as a contact when the button is
2913
2918
pressed. Available in private chats only.
2914
2919
:type request_contact: :obj:`bool`
@@ -2942,14 +2947,16 @@ class KeyboardButton(Dictionaryable, JsonSerializable):
0 commit comments