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:
158
ID:
93B9FBB5
- 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.peer_types (List of
InlineQueryPeerType
, optional) – Filter to use when selecting chats.
Consider disabling your ad-blocker on this site to support Pyrogram