Skip to content

[DOCS] Wrong documentation for switch_inline_query #4446

@hethon

Description

@hethon

Steps to Reproduce

  1. 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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions