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 of
KeyboardButton
.- Details:
Layer:
194
ID:
93B9FBB5
- Parameters:
text (
str
) – Button labelquery (
str
) – The inline query to usesame_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.peer_types (List of
InlineQueryPeerType
, optional) – Filter to use when selecting chats.