telegramsjs
    Preparing search index...

    Interface SwitchInlineCurrentChatButton

    interface SwitchInlineCurrentChatButton {
        switch_inline_query_current_chat: string;
        text: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    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. May be empty, in which case only the bot's username will be inserted.

    This offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options. Not supported in channels and for messages sent in channel direct messages chats and on behalf of a Telegram Business account.

    text: string

    Label text on the button