Documentation - v0.32.0
    Preparing search index...

    Interface BotKeyboardButtonStyle

    Style of a bot keyboard button.

    Note that not every field is supported everywhere: icon is only used in keyboards, and link is only used in rich messages. Unsupported fields are silently dropped.

    interface BotKeyboardButtonStyle {
        bgDanger?: boolean;
        bgPrimary?: boolean;
        bgSuccess?: boolean;
        icon?: Long;
        link?: boolean;
    }
    Index

    Properties

    bgDanger?: boolean

    Render the button with the "danger" background color

    bgPrimary?: boolean

    Render the button with the primary background color

    bgSuccess?: boolean

    Render the button with the "success" background color

    icon?: Long

    Custom emoji to be shown on the button (keyboards only)

    link?: boolean

    Render the button as a link (rich messages only)