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

    Interface RichMessageButton

    Represents a button in a RichMessage.

    interface RichMessageButton {
        callback_data?: string;
        copy_text?: CopyTextButton;
        disabled?: DisabledButton;
        login_url?: LoginUrl;
        style?: string;
        switch_inline_query?: string;
        switch_inline_query_chosen_chat?: SwitchInlineQueryChosenChat;
        switch_inline_query_current_chat?: string;
        text: RichText;
        url?: string;
        web_app?: WebAppInfo;
    }
    Index
    callback_data?: string

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

    copy_text?: CopyTextButton

    A button that copies the specified text to the clipboard.

    disabled?: DisabledButton

    If set, then the button is disabled and does nothing.

    login_url?: LoginUrl

    An HTTPS URL used to automatically authorize the user.

    style?: string

    Style of the button. Must be one of 'danger', 'success', 'primary', or 'link' (the docs type this field as a plain String, so unknown future styles stay assignable).

    switch_inline_query?: string

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

    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.

    text: RichText

    Text of the button. May contain only plain text, RichTextCustomEmoji and RichTextDateTime entities.

    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.