telebot-ts API Documentation - v1.0.0
    Preparing search index...

    Interface InlineKeyboardButton

    Represents one button of an inline keyboard.

    interface InlineKeyboardButton {
        callback_data?: string;
        callback_game?: CallbackGame;
        copy_text?: CopyTextButton;
        disabled?: DisabledButton;
        icon_custom_emoji_id?: string;
        login_url?: LoginUrl;
        pay?: boolean;
        style?: string;
        switch_inline_query?: string;
        switch_inline_query_chosen_chat?: SwitchInlineQueryChosenChat;
        switch_inline_query_current_chat?: string;
        text: string;
        url?: string;
        web_app?: WebAppInfo;
    }

    Implemented by

    Index
    callback_data?: string

    Data to be sent in a callback query to the bot when the button is pressed (1-64 bytes).

    callback_game?: CallbackGame

    Description of the game that will be launched when the user presses the button.

    copy_text?: CopyTextButton

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

    disabled?: DisabledButton

    If set, then the button is disabled and does nothing (Bot API 10.3+).

    icon_custom_emoji_id?: string

    Unique identifier of the custom emoji shown before the text of the button.

    login_url?: LoginUrl

    An HTTPS URL used to automatically authorize the user.

    pay?: boolean

    Specify True, to send a Pay button.

    style?: string

    Style of the button ('danger', 'success', 'primary').

    switch_inline_query?: string

    If set, pressing the button will prompt the user to select one of their chats and insert the bot's username and the specified inline query.

    switch_inline_query_chosen_chat?: SwitchInlineQueryChosenChat

    If set, pressing the button will prompt the user to select one of their chats of the specified type.

    switch_inline_query_current_chat?: string

    If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field.

    text: string

    Label text on the button.

    url?: string

    HTTP or tg:// URL to be opened when the button is pressed.

    web_app?: WebAppInfo

    Description of the Web App that will be launched when the user presses the button.