+
    ÁFñj6  ã                   ó˜   € R t ^ RIHt ^ RIHt ^ RIHtHt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# )zIThis module contains an object that represents a Telegram KeyboardButton.)ÚTYPE_CHECKING)ÚKeyboardButtonPollType)ÚKeyboardButtonRequestChatÚKeyboardButtonRequestManagedBotÚKeyboardButtonRequestUsers)ÚTelegramObject)Úde_json_optional©ÚJSONDict)Ú
WebAppInfo)ÚBotc                   ó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# )ÚKeyboardButtonaL"  
This object represents one button of the reply keyboard. At most one of the optional fields
other than :attr:`text`, :attr:`icon_custom_emoji_id`, and :attr:`style` must be used to
specify the type of the button. For simple text buttons, :obj:`str`
can be used instead of this object to specify text of the button.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`text`, :attr:`request_contact`, :attr:`request_location`,
:attr:`request_poll`, :attr:`web_app`, :attr:`request_users`, :attr:`request_chat`,
:attr:`style` and :attr:`icon_custom_emoji_id` are equal.

Note:
    * Optional fields are mutually exclusive.
    * :attr:`request_contact` and :attr:`request_location` options will only work in Telegram
      versions released after 9 April, 2016. Older clients will display unsupported message.
    * :attr:`request_poll` option will only work in Telegram versions released after 23
      January, 2020. Older clients will display unsupported message.
    * :attr:`web_app` option will only work in Telegram versions released after 16 April, 2022.
      Older clients will display unsupported message.
    * :attr:`request_users` and :attr:`request_chat` options will only work in Telegram
      versions released after 3 February, 2023. Older clients will display unsupported
      message.
    * :attr:`style` option will only work in Telegram versions released after February 9, 2026.
      Older clients will display buttons without styling.

.. versionchanged:: 21.0
   Removed deprecated argument and attribute ``request_user``.
.. versionchanged:: 20.0
   :attr:`web_app` is considered as well when comparing objects of this type in terms of
   equality.
.. versionchanged:: 20.5
   :attr:`request_users` and :attr:`request_chat` are considered as well when
   comparing objects of this type in terms of equality.
.. versionchanged:: 22.7
   :attr:`icon_custom_emoji_id` is considered as well when comparing objects of this type in
   terms of equality.

.. versionchanged:: 22.7
   :attr:`style` and :attr:`icon_custom_emoji_id` are considered as well when
   comparing objects of this type in terms of equality.

Args:
    text (:obj:`str`): Text of the button. If none of the fields other than :attr:`text`,
        :attr:`icon_custom_emoji_id`, and :attr:`style` are used, it will be sent as a
        message when the button is pressed.
    request_contact (:obj:`bool`, optional): If :obj:`True`, the user's phone number will be
        sent as a contact when the button is pressed. Available in private chats only.
    request_location (:obj:`bool`, optional): If :obj:`True`, the user's current location will
        be sent when the button is pressed. Available in private chats only.
    request_poll (:class:`~telegram.KeyboardButtonPollType`, optional): If specified, the user
        will be asked to create a poll and send it to the bot when the button is pressed.
        Available in private chats only.
    web_app (:class:`~telegram.WebAppInfo`, optional): If specified, the described `Web App
        <https://core.telegram.org/bots/webapps>`_ will be launched when the button is pressed.
        The Web App will be able to send a :attr:`Message.web_app_data` service message.
        Available in private chats only.

        .. versionadded:: 20.0

    request_users (:class:`KeyboardButtonRequestUsers`, optional): If specified, pressing the
        button will open a list of suitable users. Tapping on any user will send its
        identifier to the bot in a :attr:`telegram.Message.users_shared` service message.
        Available in private chats only.

        .. versionadded:: 20.8
    request_chat (:class:`KeyboardButtonRequestChat`, optional): If specified, pressing the
        button will open a list of suitable chats. Tapping on a chat will send its
        identifier to the bot in a :attr:`telegram.Message.chat_shared` service message.
        Available in private chats only.

        .. versionadded:: 20.1
    style (:obj:`str`, optional): Style of the button. Must be one of
        :tg-const:`telegram.constants.KeyboardButtonStyle.PRIMARY` (blue),
        :tg-const:`telegram.constants.KeyboardButtonStyle.SUCCESS` (green), and
        :tg-const:`telegram.constants.KeyboardButtonStyle.DANGER` (red).
        Color name aliases :tg-const:`telegram.constants.KeyboardButtonStyle.BLUE`,
        :tg-const:`telegram.constants.KeyboardButtonStyle.GREEN`, and
        :tg-const:`telegram.constants.KeyboardButtonStyle.RED` are also available.
        If omitted, then an app-specific style is used.

        .. versionadded:: 22.7
    icon_custom_emoji_id (:obj:`str`, optional): Unique identifier of the
        custom emoji shown before the text of the button. Can only be used by bots that
        purchased additional usernames on Fragment or in the messages directly sent by the
        bot to private, group and supergroup chats if the owner of the bot has a Telegram
        Premium subscription.

        .. versionadded:: 22.7
    request_managed_bot (:obj:`telegram.KeyboardButtonRequestManagedBot`, optional): If
        specified, pressing the button will ask the user to create and share a bot that will
        be managed by the current bot. Available for bots that enabled management of other bots
        in the `@BotFather <https://telegram.me/BotFather>` Mini App. Available in private
        chats only.

        .. versionadded:: 22.8


Attributes:
    text (:obj:`str`): Text of the button. If none of the fields other than :attr:`text`,
        :attr:`icon_custom_emoji_id`, and :attr:`style` are used, it will be sent as a
        message when the button is pressed.
    request_contact (:obj:`bool`): Optional. If :obj:`True`, the user's phone number will be
        sent as a contact when the button is pressed. Available in private chats only.
    request_location (:obj:`bool`): Optional. If :obj:`True`, the user's current location will
        be sent when the button is pressed. Available in private chats only.
    request_poll (:class:`~telegram.KeyboardButtonPollType`): Optional. If specified,
        the user will be asked to create a poll and send it to the bot when the button is
        pressed. Available in private chats only.
    web_app (:class:`~telegram.WebAppInfo`): Optional. If specified, the described `Web App
        <https://core.telegram.org/bots/webapps>`_ will be launched when the button is pressed.
        The Web App will be able to send a :attr:`Message.web_app_data` service message.
        Available in private chats only.

        .. versionadded:: 20.0
    request_users (:class:`KeyboardButtonRequestUsers`): Optional. If specified, pressing the
        button will open a list of suitable users. Tapping on any user will send its
        identifier to the bot in a :attr:`telegram.Message.users_shared` service message.
        Available in private chats only.

        .. versionadded:: 20.8
    request_chat (:class:`KeyboardButtonRequestChat`): Optional. If specified, pressing the
        button will open a list of suitable chats. Tapping on a chat will send its
        identifier to the bot in a :attr:`telegram.Message.chat_shared` service message.
        Available in private chats only.

        .. versionadded:: 20.1
    style (:obj:`str`): Optional. Style of the button. Must be one of
        :tg-const:`telegram.constants.KeyboardButtonStyle.PRIMARY` (blue),
        :tg-const:`telegram.constants.KeyboardButtonStyle.SUCCESS` (green), and
        :tg-const:`telegram.constants.KeyboardButtonStyle.DANGER` (red).
        Color name aliases :tg-const:`telegram.constants.KeyboardButtonStyle.BLUE`,
        :tg-const:`telegram.constants.KeyboardButtonStyle.GREEN`, and
        :tg-const:`telegram.constants.KeyboardButtonStyle.RED` are also available.
        If omitted, then an app-specific style is used.

        .. versionadded:: 22.7
    icon_custom_emoji_id (:obj:`str`): Optional. Unique identifier of the
        custom emoji shown before the text of the button. Can only be used by bots that
        purchased additional usernames on Fragment or in the messages directly sent by the
        bot to private, group and supergroup chats if the owner of the bot has a Telegram
        Premium subscription.

        .. versionadded:: 22.7
    request_managed_bot (:obj:`telegram.KeyboardButtonRequestManagedBot`): Optional. If
        specified, pressing the button will ask the user to create and share a bot that will
        be managed by the current bot. Available for bots that enabled management of other bots
        in the `@BotFather <https://telegram.me/BotFather>` Mini App. Available in private
        chats only.

        .. versionadded:: 22.8
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,          R
S[ R,          RS[R,          RS[R,          /# )é   ÚtextÚrequest_contactNÚrequest_locationÚrequest_pollÚweb_appÚrequest_chatÚrequest_usersÚstyleÚicon_custom_emoji_idÚrequest_managed_botr   )ÚstrÚboolr   r   r   r   r   r
   )ÚformatÚ__classdict__s   "€ÚN/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/_keyboardbutton.pyÚ__annotate__ÚKeyboardButton.__annotate__Ì   s¦   ø€ ÷ *ñ *áð*ñ  �ð*ñ  �+ð	*ñ
 -¨tÕ3ð*ñ ˜dÕ"ð*ñ 0°$Õ6ð*ñ 2°DÕ8ð*ñ �T�zð*ñ " D�jð*ñ =¸tÕCð*ñ ˜t•Oñ*ó    c          	     ó”  <€ \         SV `  VR 7       Wn        W n        W0n        W@n        WPn        Wpn        W`n        W€n	        W�n
        W n        V P                  V P                  V P                  V P
                  V P                  V P                  V P                  V P                  V P                  3	V n        V P                  4        R# ))r   N)ÚsuperÚ__init__r   r   r   r   r   r   r   r   r   r   Ú	_id_attrsÚ_freeze)Úselfr   r   r   r   r   r   r   r   r   r   r   Ú	__class__s   &&&&&&&&&&&$€r    r&   ÚKeyboardButton.__init__Ì   s±   ø€ ô 	‰Ñ JÐÔ/ð Œ	à,;ÔØ-=ÔØ;GÔØ*1ŒØ@MÔØ>JÔØ!&Œ
Ø0DÔ!ØK^Ô ð �I‰IØ× Ñ Ø×!Ñ!Ø×ÑØ�L‰LØ×ÑØ×ÑØ�J‰JØ×%Ñ%ð

ˆŒð 	�‰Žr#   c                ó(   <€ V ^8„  d   QhRS[ RRRR/# )r   ÚdataÚbotz
Bot | NoneÚreturnr   r	   )r   r   s   "€r    r!   r"   ù   s(   ø€ ÷ Kñ K™8ð K¨,ð KÐBRñ Kr#   c                óä  <€ V P                  V4      p\        VP                  R4      \        V4      VR&   \        VP                  R4      \        V4      VR&   \        VP                  R4      \
        V4      VR&   \        VP                  R4      \        V4      VR&   \        VP                  R4      \        V4      VR&   / pVP                  R4      ;p'       d   RV/p\        SV `%  WVR7      # )z,See :meth:`telegram.TelegramObject.de_json`.r   r   r   r   r   Úrequest_user)r-   r.   r   )
Ú_parse_datar   Úgetr   r   r   r   r   r%   Ú_de_json)Úclsr-   r.   r   r1   r*   s   &&&  €r    Úde_jsonÚKeyboardButton.de_jsonø   sò   ø€ ð �‰˜tÓ$ˆä/Ø�H‰H�^Ó$Ô&<¸có 
ˆˆ^Ñô !1Ø�H‰H�_Ó%Ô'AÀ3ó!
ˆˆ_Ñô  0Ø�H‰H�^Ó$Ô&?Àó 
ˆˆ^Ñô +¨4¯8©8°IÓ+>Ä
ÈCÓPˆˆY‰Ü&6Ø�H‰HÐ*Ó+Ô-LÈcó'
ˆÐ"Ñ#ð ˆ
ð  Ÿ8™8 NÓ3Ð3ˆ<Ö3Ø(¨,Ð7ˆJä‰wÑ T¸zÐÓJÐJr#   )r'   r   r   r   r   r   r   r   r   r   r   )
r   r   r   r   r   r   r   r   r   r   )	NNNNNNNNN)N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r&   Úclassmethodr6   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r*   r   s   @@r    r   r   &   sJ   ù‡ € ñVðp€Iñ*ð '+÷*ö *ðX ÷Kô Kó ÷Kð Kr#   r   N)r<   Útypingr   Ú telegram._keyboardbuttonpolltyper   Útelegram._keyboardbuttonrequestr   r   r   Útelegram._telegramobjectr   Útelegram._utils.argumentparsingr   Útelegram._utils.typesr
   Útelegram._webappinfor   Útelegramr   r   © r#   r    Ú<module>rK      s?   ðñ& På  å C÷ñ õ
 4Ý <Ý *Ý +çÝôkK�^ö kKr#   