L i)BdZddlmZddlmZddlmZGddeZy)zTThis module contains a class that represents a Telegram SwitchInlineQueryChosenChat.)Optional)TelegramObject)JSONDictcveZdZdZdZ d dddeedeedeedeed eed eef fd Z xZ S) SwitchInlineQueryChosenChata This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`query`, :attr:`allow_user_chats`, :attr:`allow_bot_chats`, :attr:`allow_group_chats`, and :attr:`allow_channel_chats` are equal. .. versionadded:: 20.3 Caution: The PTB team has discovered that you must pass at least one of :paramref:`allow_user_chats`, :paramref:`allow_bot_chats`, :paramref:`allow_group_chats`, or :paramref:`allow_channel_chats` to Telegram. Otherwise, an error will be raised. Args: query (:obj:`str`, optional): The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted. allow_user_chats (:obj:`bool`, optional): Pass :obj:`True`, if private chats with users can be chosen. allow_bot_chats (:obj:`bool`, optional): Pass :obj:`True`, if private chats with bots can be chosen. allow_group_chats (:obj:`bool`, optional): Pass :obj:`True`, if group and supergroup chats can be chosen. allow_channel_chats (:obj:`bool`, optional): Pass :obj:`True`, if channel chats can be chosen. Attributes: query (:obj:`str`): Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted. allow_user_chats (:obj:`bool`): Optional. :obj:`True`, if private chats with users can be chosen. allow_bot_chats (:obj:`bool`): Optional. :obj:`True`, if private chats with bots can be chosen. allow_group_chats (:obj:`bool`): Optional. :obj:`True`, if group and supergroup chats can be chosen. allow_channel_chats (:obj:`bool`): Optional. :obj:`True`, if channel chats can be chosen. )allow_bot_chatsallow_channel_chatsallow_group_chatsallow_user_chatsqueryN api_kwargsr r rr r rct||||_||_||_||_||_|j|j|j|j |j f|_|jy)Nr ) super__init__r r rr r _id_attrs_freeze)selfr r rr r r __class__s k/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_switchinlinequerychosenchat.pyrz$SwitchInlineQueryChosenChat.__init__Ks} J/$) 0@/>1B3F  JJ  ! !   " "  $ $   )NNNNN) __name__ __module__ __qualname____doc__ __slots__rstrboolrr __classcell__)rs@rrrs&PI $+/*.,0.2 *.}#4."$  $D>  &d^ X&rrN)rtypingrtelegram._telegramobjectrtelegram._utils.typesrrrrr$s"$[3*K.Kr