This object represents one button of an inline keyboard. You must use exactly one of the optional fields. Telegram Documentation: https://core.telegram.org/bots/api#inlinekeyboardbutton :param text: Label text on the button :type text: :obj:`str` :param icon_custom_emoji_id:
| 3228 | |
| 3229 | |
| 3230 | class InlineKeyboardButton(Dictionaryable, JsonSerializable, JsonDeserializable): |
| 3231 | """ |
| 3232 | This object represents one button of an inline keyboard. You must use exactly one of the optional fields. |
| 3233 | |
| 3234 | Telegram Documentation: https://core.telegram.org/bots/api#inlinekeyboardbutton |
| 3235 | |
| 3236 | :param text: Label text on the button |
| 3237 | :type text: :obj:`str` |
| 3238 | |
| 3239 | :param icon_custom_emoji_id: Optional. Unique identifier of the custom emoji shown before the text of the button. |
| 3240 | Can only be used by bots that purchased additional usernames on Fragment or in the messages directly sent by the bot to private, |
| 3241 | group and supergroup chats if the owner of the bot has a Telegram Premium subscription. |
| 3242 | :type icon_custom_emoji_id: :obj:`str` |
| 3243 | |
| 3244 | :param style: Optional. Style of the button. Must be one of “danger” (red), “success” (green) or “primary” (blue). If omitted, |
| 3245 | then an app-specific style is used. |
| 3246 | :type style: :obj:`str` |
| 3247 | |
| 3248 | :param url: Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id=<user_id> can be |
| 3249 | used to mention a user by their ID without using a username, if this is allowed by their privacy settings. |
| 3250 | :type url: :obj:`str` |
| 3251 | |
| 3252 | :param callback_data: Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes |
| 3253 | :type callback_data: :obj:`str` |
| 3254 | |
| 3255 | :param web_app: Optional. Description of the Web App that will be launched when the user presses the button. The Web |
| 3256 | App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Available only |
| 3257 | in private chats between a user and the bot. |
| 3258 | :type web_app: :class:`telebot.types.WebAppInfo` |
| 3259 | |
| 3260 | :param login_url: Optional. An HTTPS URL used to automatically authorize the user. Can be used as a replacement for |
| 3261 | the Telegram Login Widget. |
| 3262 | :type login_url: :class:`telebot.types.LoginUrl` |
| 3263 | |
| 3264 | :param switch_inline_query: Optional. If set, pressing the button will prompt the user to select one of their chats, |
| 3265 | open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which |
| 3266 | case just the bot's username will be inserted.Note: This offers an easy way for users to start using your bot in inline |
| 3267 | mode when they are currently in a private chat with it. Especially useful when combined with switch_pm… actions - in |
| 3268 | this case the user will be automatically returned to the chat they switched from, skipping the chat selection screen. |
| 3269 | :type switch_inline_query: :obj:`str` |
| 3270 | |
| 3271 | :param switch_inline_query_current_chat: Optional. If set, pressing the button will insert the bot's username |
| 3272 | and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username |
| 3273 | will be inserted.This offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting |
| 3274 | something from multiple options. |
| 3275 | :type switch_inline_query_current_chat: :obj:`str` |
| 3276 | |
| 3277 | :param switch_inline_query_chosen_chat: Optional. If set, pressing the button will prompt the user to select one of their chats of the |
| 3278 | specified type, open that chat and insert the bot's username and the specified inline query in the input field |
| 3279 | :type switch_inline_query_chosen_chat: :class:`telebot.types.SwitchInlineQueryChosenChat` |
| 3280 | |
| 3281 | :param callback_game: Optional. Description of the game that will be launched when the user presses the |
| 3282 | button. NOTE: This type of button must always be the first button in the first row. |
| 3283 | :type callback_game: :class:`telebot.types.CallbackGame` |
| 3284 | |
| 3285 | :param pay: Optional. Specify True, to send a Pay button. NOTE: This type of button must always be the first button in |
| 3286 | the first row and can only be used in invoice messages. |
| 3287 | :type pay: :obj:`bool` |
no outgoing calls
no test coverage detected
searching dependent graphs…