KeyboardButtonSwitchInline¶
-
class
pyrogram.raw.types.
KeyboardButtonSwitchInline
¶ 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 in the input field.
Constructor type of
KeyboardButton
.- Details
Layer:
126
ID:
0x568a748
- Parameters
text (
str
) – Button label.query (
str
) – The inline query to use.same_peer (
bool
, optional) – If set, pressing the button will insert the bot‘s username and the specified inline query in the current chat’s input field.