Telebot 9.4
Library for Telegram bot API
Loading...
Searching...
No Matches
Public Attributes | List of all members
telebot_inline_keyboard_button Struct Reference

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_infoweb_app
 
struct telebot_login_urllogin_url
 
char * switch_inline_query
 
char * switch_inline_query_current_chat
 
struct telebot_switch_inline_query_chosen_chatswitch_inline_query_chosen_chat
 
struct telebot_copy_text_buttoncopy_text
 
struct telebot_callback_gamecallback_game
 
bool pay
 

Detailed Description

This object represents one button of an inline keyboard. You must use exactly one of the optional fields.

Member Data Documentation

◆ callback_data

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

◆ callback_game

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.

◆ copy_text

struct telebot_copy_text_button* telebot_inline_keyboard_button::copy_text

Optional. Description of the button that copies the specified text to the clipboard.

◆ login_url

struct telebot_login_url* telebot_inline_keyboard_button::login_url

Optional. An HTTPS URL used to automatically authorize the user.

◆ pay

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.

◆ switch_inline_query

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.

◆ switch_inline_query_chosen_chat

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.

◆ switch_inline_query_current_chat

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.

◆ text

char* telebot_inline_keyboard_button::text

Label text on the button

◆ url

char* telebot_inline_keyboard_button::url

Optional. HTTP or tg:// url to be opened when button is pressed

◆ web_app

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.


The documentation for this struct was generated from the following file: