-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
⚙️ documentationaffected functionality: documentationaffected functionality: documentation
Description
Steps to Reproduce
- Doc for switch_inline_query
Expected behaviour
switch_inline_query (:obj:`str`, optional): If set, pressing the button will
prompt the user to select one of their chats of the specified type, open that chat and
insert the bot's username and the specified inline query in the input field. Not
supported for messages sent on behalf of a Telegram Business account.
Tip:
This is similar to the new parameter :paramref:`switch_inline_query_chosen_chat`,
but gives no control over which chats can be selected.
Actual behaviour
switch_inline_query (:obj:`str`, optional): If 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.
This offers a quick way for the user to open your bot in inline mode in the same chat -
good for selecting something from multiple options. Not supported in channels and for
messages sent on behalf of a Telegram Business account.
Tip:
This is similar to the new parameter :paramref:`switch_inline_query_chosen_chat`,
but gives no control over which chats can be selected.
Version of Python, python-telegram-bot & dependencies
python-telegram-bot 21.4
Bot API 7.7
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]Metadata
Metadata
Assignees
Labels
⚙️ documentationaffected functionality: documentationaffected functionality: documentation