Documentation - v0.27.1
    Preparing search index...
    • Button to force a user to switch to inline mode.

      Pressing the button will prompt the user to select one of their chats, open that chat and insert the bot‘s username and the specified inline query (if any) in the input field.

      Used for inline keyboards, not reply!

      Parameters

      • text: string

        Button text

      • query: string = ''

        Inline query (can be empty or omitted)

      • OptionalcurrentChat: boolean

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

      Returns RawKeyboardButtonSwitchInline