Documentation - v0.32.0
    Preparing search index...

    Interface SwitchInlineButton

    A button prompting the user to switch to inline mode

    interface SwitchInlineButton {
        currentChat?: boolean;
        peerTypes?: TypeInlineQueryPeerType[];
        query?: string;
        style?: BotKeyboardButtonStyle;
        text: string;
        type: "switch_inline";
    }

    Hierarchy

    • BotKeyboardButtonBase
      • SwitchInlineButton
    Index

    Properties

    currentChat?: boolean

    Whether to insert the query in the current chat instead of prompting for one

    Types of the peers that can be chosen by the user

    query?: string

    Inline query (can be empty)

    Style of the button

    text: string

    Text of the button

    type: "switch_inline"