Skip to content

export Function

SwitchInlineQueryCurrentChat ​

Constructor ​

ts
KeyboardButton.SwitchInlineQueryCurrentChat( text, switch_inline_query_current_chat )
ParameterTypeDescription
textstringLabel text on the button.
switch_inline_query_current_chatstringIf 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.

Return: KeyboardButtonPayload