|
Telebot 9.4
Library for Telegram bot API
|
This object represents one button of an inline keyboard. You must use exactly one of the optional fields. More...
#include <telebot-types.h>
Public Attributes | |
| char * | text |
| char * | url |
| char * | callback_data |
| struct telebot_web_app_info * | web_app |
| struct telebot_login_url * | login_url |
| char * | switch_inline_query |
| char * | switch_inline_query_current_chat |
| struct telebot_switch_inline_query_chosen_chat * | switch_inline_query_chosen_chat |
| struct telebot_copy_text_button * | copy_text |
| struct telebot_callback_game * | callback_game |
| bool | pay |
This object represents one button of an inline keyboard. You must use exactly one of the optional fields.
| char* telebot_inline_keyboard_button::callback_data |
Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes
| struct telebot_callback_game* telebot_inline_keyboard_button::callback_game |
Optional. Description of the game that will be launched when the user presses the button.
| struct telebot_copy_text_button* telebot_inline_keyboard_button::copy_text |
Optional. Description of the button that copies the specified text to the clipboard.
| struct telebot_login_url* telebot_inline_keyboard_button::login_url |
Optional. An HTTPS URL used to automatically authorize the user.
| bool telebot_inline_keyboard_button::pay |
Optional. Specify True, to send a Pay button. NOTE: This type of button must always be the first button in the first row.
| char* telebot_inline_keyboard_button::switch_inline_query |
Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. Can be empty, in which case just the bot's username will be inserted.
| struct telebot_switch_inline_query_chosen_chat* telebot_inline_keyboard_button::switch_inline_query_chosen_chat |
Optional. If set, pressing the button will prompt the user to select one of their chats of the specified type.
| char* telebot_inline_keyboard_button::switch_inline_query_current_chat |
Optional. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. Can be empty, in which case just the bot's username will be inserted.
| char* telebot_inline_keyboard_button::text |
Label text on the button
| char* telebot_inline_keyboard_button::url |
Optional. HTTP or tg:// url to be opened when button is pressed
| struct telebot_web_app_info* telebot_inline_keyboard_button::web_app |
Optional. Description of the Web App that will be launched when the user presses the button.