MadelineProto/docs/TD_docs/constructors/inlineKeyboardButtonTypeSwitchInline.md
2017-07-23 16:33:46 +02:00

1.2 KiB

title description
inlineKeyboardButtonTypeSwitchInline A button which forces inline query to the bot to be substitued in the input field

Constructor: inlineKeyboardButtonTypeSwitchInline

Back to constructors index

A button which forces inline query to the bot to be substitued in the input field

Attributes:

Name Type Required Description
query string Yes Inline query to be sent to the bot
in_current_chat Bool Yes True, if the inline query should be sent from the current chat

Type: InlineKeyboardButtonType

Example:

$inlineKeyboardButtonTypeSwitchInline = ['_' => 'inlineKeyboardButtonTypeSwitchInline', 'query' => 'string', 'in_current_chat' => Bool];

PWRTelegram json-encoded version:

{"_": "inlineKeyboardButtonTypeSwitchInline", "query": "string", "in_current_chat": Bool}

Or, if you're into Lua:

inlineKeyboardButtonTypeSwitchInline={_='inlineKeyboardButtonTypeSwitchInline', query='string', in_current_chat=Bool}