Documentation - v0.28.0
    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

      • Optionaloptions: { currentChat?: boolean; query?: string; style?: RawKeyboardButtonStyle }
        • 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

        • Optionalquery?: string

          Inline query (can be empty or omitted)

        • Optionalstyle?: RawKeyboardButtonStyle

      Returns RawKeyboardButtonSwitchInline