+
    ÁFñjH8  ã                   ó¤   € R t ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ]'       d   ^ RIHt  ! R R]4      t ! R	 R
]4      t ! R R]4      tR# )z8This module contains two objects to request chats/users.)ÚTYPE_CHECKING)ÚChatAdministratorRights)ÚTelegramObject)Úde_json_optional©ÚJSONDict)ÚBotc                   óR   a a€ ] tR t^ t oRtRtRRR/V3R lV 3R lllltRtVtV ;t	# )	ÚKeyboardButtonRequestUsersuC  This object defines the criteria used to request a suitable user. The identifier of the
selected user will be shared with the bot when the corresponding button is pressed. `More
about requesting users Â» <https://core.telegram.org/bots/features#chat-and-user-selection>`_.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`request_id` is equal.

.. versionadded:: 20.8
    This class was previously named ``KeyboardButtonRequestUser``.

Args:
    request_id (:obj:`int`): Signed 32-bit identifier of the request, which will be received
        back in the :class:`telegram.UsersShared` object. Must be unique within the message.
    user_is_bot (:obj:`bool`, optional): Pass :obj:`True` to request a bot, pass :obj:`False`
        to request a regular user. If not specified, no additional restrictions are applied.
    user_is_premium (:obj:`bool`, optional): Pass :obj:`True` to request a premium user, pass
        :obj:`False` to request a non-premium user. If not specified, no additional
        restrictions are applied.
    max_quantity (:obj:`int`, optional): The maximum number of users to be selected;
        :tg-const:`telegram.constants.KeyboardButtonRequestUsersLimit.MIN_QUANTITY` -
        :tg-const:`telegram.constants.KeyboardButtonRequestUsersLimit.MAX_QUANTITY`.
        Defaults to :tg-const:`telegram.constants.KeyboardButtonRequestUsersLimit.MIN_QUANTITY`
        .

        .. versionadded:: 20.8
    request_name (:obj:`bool`, optional): Pass :obj:`True` to request the users' first and last
        name.

        .. versionadded:: 21.1
    request_username (:obj:`bool`, optional): Pass :obj:`True` to request the users' username.

        .. versionadded:: 21.1
    request_photo (:obj:`bool`, optional): Pass :obj:`True` to request the users' photo.

        .. versionadded:: 21.1

Attributes:
    request_id (:obj:`int`): Identifier of the request.
    user_is_bot (:obj:`bool`): Optional. Pass :obj:`True` to request a bot, pass :obj:`False`
        to request a regular user. If not specified, no additional restrictions are applied.
    user_is_premium (:obj:`bool`): Optional. Pass :obj:`True` to request a premium user, pass
        :obj:`False` to request a non-premium user. If not specified, no additional
        restrictions are applied.
    max_quantity (:obj:`int`): Optional. The maximum number of users to be selected;
        :tg-const:`telegram.constants.KeyboardButtonRequestUsersLimit.MIN_QUANTITY` -
        :tg-const:`telegram.constants.KeyboardButtonRequestUsersLimit.MAX_QUANTITY`.
        Defaults to :tg-const:`telegram.constants.KeyboardButtonRequestUsersLimit.MIN_QUANTITY`
        .

        .. versionadded:: 20.8
    request_name (:obj:`bool`): Optional. Pass :obj:`True` to request the users' first and last
        name.

        .. versionadded:: 21.1
    request_username (:obj:`bool`): Optional. Pass :obj:`True` to request the users' username.

        .. versionadded:: 21.1
    request_photo (:obj:`bool`): Optional. Pass :obj:`True` to request the users' photo.

        .. versionadded:: 21.1

NÚ
api_kwargsc                ó¬   <€ V ^8„  d   QhRS[ RS[R,          RS[R,          RS[ R,          RS[R,          RS[R,          RS[R,          R	S[R,          /# )
é   Ú
request_idÚuser_is_botNÚuser_is_premiumÚmax_quantityÚrequest_nameÚrequest_usernameÚrequest_photor   )ÚintÚboolr   )ÚformatÚ__classdict__s   "€ÚU/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/_keyboardbuttonrequest.pyÚ__annotate__Ú'KeyboardButtonRequestUsers.__annotate__j   sw   ø€ ÷ ñ áðñ ˜D•[ðñ  �ð	ñ
 ˜D•jðñ ˜T•kðñ  �+ðñ ˜d•{ðñ ˜t•Oñó    c               óÀ   <€ \         S	V `  VR 7       Wn        W n        W0n        W@n        WPn        W`n        Wpn        V P                  3V n	        V P                  4        R# ©)r   N)ÚsuperÚ__init__r   r   r   r   r   r   r   Ú	_id_attrsÚ_freeze)
Úselfr   r   r   r   r   r   r   r   Ú	__class__s
   &&&&&&&&$€r   r    Ú#KeyboardButtonRequestUsers.__init__j   sW   ø€ ô 	‰Ñ JÐÔ/à)Œð )4ÔØ,;ÔØ(4ÔØ)5ÔØ-=ÔØ*7ÔàŸ/™/Ð+ˆŒà�‰Žr   )r!   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   )NNNNNN©
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r    Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r$   r   s   @@r   r
   r
       s+   ù‡ € ñ=ð~€Iñð '+÷÷ ö r   r
   c                   óx   a a€ ] tR t^‡t oRtR	tR
RR/V3R lV 3R llllt]RV3R lV 3R lll4       tRt	Vt
V ;t# )ÚKeyboardButtonRequestChatuÛ  This object defines the criteria used to request a suitable chat. The identifier of the
selected user will be shared with the bot when the corresponding button is pressed. `More
about requesting users Â» <https://core.telegram.org/bots/features#chat-and-user-selection>`_.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`request_id` is equal.

.. versionadded:: 20.1

Args:
    request_id (:obj:`int`): Signed 32-bit identifier of the request, which will be received
        back in the :class:`telegram.ChatShared` object. Must be unique within the message.
    chat_is_channel (:obj:`bool`): Pass :obj:`True` to request a channel chat, pass
        :obj:`False` to request a group or a supergroup chat.
    chat_is_forum (:obj:`bool`, optional): Pass :obj:`True` to request a forum supergroup, pass
        :obj:`False` to request a non-forum chat. If not specified, no additional
        restrictions are applied.
    chat_has_username (:obj:`bool`, optional): Pass :obj:`True` to request a supergroup or a
        channel with a username, pass :obj:`False` to request a chat without a username. If
        not specified, no additional restrictions are applied.
    chat_is_created (:obj:`bool`, optional): Pass :obj:`True` to request a chat owned by the
        user. Otherwise, no additional restrictions are applied.
    user_administrator_rights (:class:`ChatAdministratorRights`, optional): Specifies the
        required administrator rights of the user in the chat. If not specified, no additional
        restrictions are applied.
    bot_administrator_rights (:class:`ChatAdministratorRights`, optional): Specifies the
        required administrator rights of the bot in the chat. The rights must be a subset of
        :paramref:`user_administrator_rights`. If not specified, no additional restrictions are
        applied.
    bot_is_member (:obj:`bool`, optional): Pass :obj:`True` to request a chat with the bot
        as a member. Otherwise, no additional restrictions are applied.
    request_title (:obj:`bool`, optional): Pass :obj:`True` to request the chat's title.

        .. versionadded:: 21.1
    request_username (:obj:`bool`, optional): Pass :obj:`True` to request the chat's username.

        .. versionadded:: 21.1
    request_photo (:obj:`bool`, optional): Pass :obj:`True` to request the chat's photo.

        .. versionadded:: 21.1
Attributes:
    request_id (:obj:`int`): Identifier of the request.
    chat_is_channel (:obj:`bool`): Pass :obj:`True` to request a channel chat, pass
        :obj:`False` to request a group or a supergroup chat.
    chat_is_forum (:obj:`bool`): Optional. Pass :obj:`True` to request a forum supergroup, pass
        :obj:`False` to request a non-forum chat. If not specified, no additional
        restrictions are applied.
    chat_has_username (:obj:`bool`): Optional. Pass :obj:`True` to request a supergroup or a
        channel with a username, pass :obj:`False` to request a chat without a username. If
        not specified, no additional restrictions are applied.
    chat_is_created (:obj:`bool`) Optional. Pass :obj:`True` to request a chat owned by the
        user. Otherwise, no additional restrictions are applied.
    user_administrator_rights (:class:`ChatAdministratorRights`) Optional. Specifies the
        required administrator rights of the user in the chat. If not specified, no additional
        restrictions are applied.
    bot_administrator_rights (:class:`ChatAdministratorRights`) Optional. Specifies the
        required administrator rights of the bot in the chat. The rights must be a subset of
        :attr:`user_administrator_rights`. If not specified, no additional restrictions are
        applied.
    bot_is_member (:obj:`bool`) Optional. Pass :obj:`True` to request a chat with the bot
        as a member. Otherwise, no additional restrictions are applied.
    request_title (:obj:`bool`): Optional. Pass :obj:`True` to request the chat's title.

        .. versionadded:: 21.1
    request_username (:obj:`bool`): Optional. Pass :obj:`True` to request the chat's username.

        .. versionadded:: 21.1
    request_photo (:obj:`bool`): Optional. Pass :obj:`True` to request the chat's photo.

        .. versionadded:: 21.1
Nr   c                óî   <€ V ^8„  d   QhRS[ RS[RS[R,          RS[R,          RS[R,          RS[R,          RS[R,          R	S[R,          R
S[R,          RS[R,          RS[R,          RS[R,          /# )r   r   Úchat_is_channelÚchat_is_forumNÚchat_has_usernameÚchat_is_createdÚuser_administrator_rightsÚbot_administrator_rightsÚbot_is_memberÚrequest_titler   r   r   )r   r   r   r   )r   r   s   "€r   r   Ú&KeyboardButtonRequestChat.__annotate__Þ   s­   ø€ ÷ "ñ "áð"ñ ð"ñ ˜d•{ð	"ñ
   $�;ð"ñ  �ð"ñ $;¸TÕ#Að"ñ #:¸DÕ"@ð"ñ ˜d•{ð"ñ ˜d•{ð"ñ  �+ð"ñ ˜d•{ð"ñ ˜t•Oñ"r   c               óð   <€ \         SV `  VR 7       Wn        W n        W0n        W@n        WPn        W`n        Wpn        W€n	        W�n
        W n        W°n        V P                  3V n        V P                  4        R# r   )r   r    r   r4   r5   r6   r7   r8   r9   r:   r;   r   r   r!   r"   )r#   r   r4   r5   r6   r7   r8   r9   r:   r;   r   r   r   r$   s   &&&&&&&&&&&&$€r   r    Ú"KeyboardButtonRequestChat.__init__Þ   so   ø€ ô  	‰Ñ JÐÔ/à)ŒØ%4Ôð +8ÔØ.?ÔØ,;ÔØIbÔ&ØH`Ô%Ø*7ÔØ*7ÔØ-=ÔØ*7ÔàŸ/™/Ð+ˆŒà�‰Žr   c                ó(   <€ V ^8„  d   QhRS[ RRRR/# )r   ÚdataÚbotz
Bot | NoneÚreturnr2   r   )r   r   s   "€r   r   r<     s#   ø€ ÷ 3ñ 3™8ð 3¨,ð 3ÐB]ñ 3r   c                óÒ   <€ V P                  V4      p\        VP                  R4      \        V4      VR&   \        VP                  R4      \        V4      VR&   \        SV `  WR7      # )z,See :meth:`telegram.TelegramObject.de_json`.r8   r9   )r@   rA   )Ú_parse_datar   Úgetr   r   Úde_json)Úclsr@   rA   r$   s   &&&€r   rF   Ú!KeyboardButtonRequestChat.de_json  sl   ø€ ð �‰˜tÓ$ˆä,<Ø�H‰HÐ0Ó1Ô3JÈCó-
ˆÐ(Ñ)ô ,<Ø�H‰HÐ/Ó0Ô2IÈ3ó,
ˆÐ'Ñ(ô ‰w‰ DˆÓ2Ð2r   )r!   r9   r:   r6   r4   r7   r5   r   r   r;   r   r8   )r9   r:   r6   r4   r7   r5   r   r   r;   r   r8   )	NNNNNNNNN)N)r'   r(   r)   r*   r+   r,   r    ÚclassmethodrF   r-   r.   r/   r0   s   @@r   r2   r2   ‡   sF   ù‡ € ñFðP€Iñ"ð '+÷"ö "ðH ÷3ô 3ó ÷3ð 3r   r2   c                   óR   a a€ ] tR tRt oRtRtR	RR/V3R lV 3R lllltRtVtV ;t	# )
ÚKeyboardButtonRequestManagedBoti  aÉ  
This object defines the parameters for the creation of a managed bot.
Information about the created bot will be shared with the bot using the update
managed_bot and a :obj:`telegram.Message` with the field
:attr:`telegram.Message.managed_bot_created`.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`request_id` is equal.

.. versionadded:: 22.8

Args:
    request_id (:obj:`int`): Signed 32-bit identifier of the request. Must be unique
        within the message.
    suggested_name (:obj:`str`, optional): Suggested name for the bot.
    suggested_username (:obj:`str`, optional): Suggested username for the bot.

Attributes:
    request_id (:obj:`int`): Signed 32-bit identifier of the request. Must be unique
        within the message.
    suggested_name (:obj:`str`): Optional. Suggested name for the bot.
    suggested_username (:obj:`str`): Optional. Suggested username for the bot.
Nr   c          	      ó\   <€ V ^8„  d   QhRS[ RS[R,          RS[R,          RS[R,          /# )r   r   Úsuggested_nameNÚsuggested_usernamer   )r   Ústrr   )r   r   s   "€r   r   Ú,KeyboardButtonRequestManagedBot.__annotate__0  s?   ø€ ÷ ñ áðñ ˜d�
ðñ   $�Jð	ñ ˜t•Oñr   c               ó�   <€ \         SV `  VR 7       Wn        W n        W0n        V P                  3V n        V P                  4        R# r   )r   r    r   rM   rN   r!   r"   )r#   r   rM   rN   r   r$   s   &&&&$€r   r    Ú(KeyboardButtonRequestManagedBot.__init__0  s=   ø€ ô 	‰Ñ JÐÔ/à)Œà*8ÔØ.@ÔàŸ/™/Ð+ˆŒØ�‰Žr   )r!   r   rM   rN   )r   rM   rN   )NNr&   r0   s   @@r   rK   rK     s*   ù‡ € ñð0€Iñð '+÷÷ ö r   rK   N)r+   Útypingr   Ú!telegram._chatadministratorrightsr   Útelegram._telegramobjectr   Útelegram._utils.argumentparsingr   Útelegram._utils.typesr   Útelegramr   r
   r2   rK   © r   r   Ú<module>rZ      sI   ðñ& ?å  å EÝ 3Ý <Ý *çÝôd ô dôNG3 ô G3ôT/ nö /r   