+
    ÁFñjÔ(  ã                   ó  € R t ^ RI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	 R
]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      tR# )zFThis module contains objects representing Telegram bot command scopes.)ÚTYPE_CHECKINGÚFinal)Ú	constants)ÚTelegramObject)Úenum©ÚJSONDict)ÚBotc                   óÂ  a a€ ] tR t^!t oRtR
t]P                  P                  t ]P                  P                  t	 ]P                  P                  t
 ]P                  P                  t ]P                  P                  t ]P                  P                  t ]P                  P                  t RR/V3R lV 3R lllt]RV3R lV 3R lll4       tV3R ltR	tVtV ;t# )ÚBotCommandScopeaß  Base class for objects that represent the scope to which bot commands are applied.
Currently, the following 7 scopes are supported:

* :class:`telegram.BotCommandScopeDefault`
* :class:`telegram.BotCommandScopeAllPrivateChats`
* :class:`telegram.BotCommandScopeAllGroupChats`
* :class:`telegram.BotCommandScopeAllChatAdministrators`
* :class:`telegram.BotCommandScopeChat`
* :class:`telegram.BotCommandScopeChatAdministrators`
* :class:`telegram.BotCommandScopeChatMember`

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`type` is equal. For subclasses with additional attributes,
the notion of equality is overridden.

Note:
    Please see the `official docs`_ on how Telegram determines which commands to display.

.. _`official docs`: https://core.telegram.org/bots/api#determining-list-of-commands

.. versionadded:: 13.7

Args:
    type (:obj:`str`): Scope type.

Attributes:
    type (:obj:`str`): Scope type.
Ú
api_kwargsNc                ó4   <€ V ^8„  d   QhRS[ RS[R,          /# )é   Útyper   N)Ústrr   )ÚformatÚ__classdict__s   "€ÚO/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/_botcommandscope.pyÚ__annotate__ÚBotCommandScope.__annotate__P   s   ø€ ÷ ñ ™Sð ±¸Dµñ ó    c               óÀ   <€ \         SV `  VR 7       \        P                  ! \        P
                  W4      V n        V P                  3V n        V P                  4        R# ))r   N)	ÚsuperÚ__init__r   Ú
get_memberr   ÚBotCommandScopeTyper   Ú	_id_attrsÚ_freeze)Úselfr   r   Ú	__class__s   &&$€r   r   ÚBotCommandScope.__init__P   sA   ø€ Ü‰Ñ JÐÔ/ÜŸš¬×)FÑ)FÈÓSˆŒ	ØŸ)™)˜ˆŒà�‰Ž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   X   s#   ø€ ÷ 3ñ 3™8ð 3¨,ð 3ÐBSñ 3r   c                ó¸  <€ V P                  V4      pV P                  \        V P                  \        V P
                  \        V P                  \        V P                  \        V P                  \        V P                  \        /pV \        J d>   VP!                  R4      V9   d(   W1P#                  R4      ,          P%                  WR7      # \&        SV `I  WR7      # )aæ  Converts JSON data to the appropriate :class:`BotCommandScope` object, i.e. takes
care of selecting the correct subclass.

Args:
    data (dict[:obj:`str`, ...]): The JSON data.
    bot (:class:`telegram.Bot`, optional): The bot associated with this object. Defaults to
        :obj:`None`, in which case shortcut methods will not be available.

        .. versionchanged:: 21.4
           :paramref:`bot` is now optional and defaults to :obj:`None`

Returns:
    The Telegram object.

r   )r"   r#   )Ú_parse_dataÚDEFAULTÚBotCommandScopeDefaultÚALL_PRIVATE_CHATSÚBotCommandScopeAllPrivateChatsÚALL_GROUP_CHATSÚBotCommandScopeAllGroupChatsÚALL_CHAT_ADMINISTRATORSÚ$BotCommandScopeAllChatAdministratorsÚCHATÚBotCommandScopeChatÚCHAT_ADMINISTRATORSÚ!BotCommandScopeChatAdministratorsÚCHAT_MEMBERÚBotCommandScopeChatMemberr   ÚgetÚpopÚde_jsonr   )Úclsr"   r#   Ú_class_mappingr   s   &&& €r   r7   ÚBotCommandScope.de_jsonW   sµ   ø€ ð" �‰˜tÓ$ˆð �K‰KÔ/Ø×!Ñ!Ô#AØ×ÑÔ!=Ø×'Ñ'Ô)MØ�H‰HÔ)Ø×#Ñ#Ô%FØ�O‰OÔ6ð<
ˆð ”/Ó! d§h¡h¨vÓ&6¸.Ô&HØ!§(¡(¨6Ó"2Õ3×;Ñ;ÀÐ;ÓOÐOÜ‰w‰ DˆÓ2Ð2r   c                óÞ   <€ V ^8„  d   Qh/ S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   # )r   r'   r)   r+   r-   r/   r1   r3   )r   r   )r   r   s   "€r   r   r   !   sŠ   ø‡ ‚ ñ@ ‘3�ZÑ?ñA ñD ™S•zÑSñE ñH ™3•ZÑOñI ñL #¡3�ZÑ_ñM ñP ‘�*Ñ9ñQ ñT ™s�ÑWñU ñX ‘s•ÑGòY r   )r   r   )r   )N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r   r   r'   r)   r+   r-   r/   r1   r3   r   Úclassmethodr7   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r   r   s   @@r   r   r   !   sÒ   ù‡ € ñð: €Ià#×7Ñ7×?Ñ?€GØAØ$-×$AÑ$A×$SÑ$SÐØKØ"+×"?Ñ"?×"OÑ"O€OØIØ*3×*GÑ*G×*_Ñ*_ÐØQØ ×4Ñ4×9Ñ9€DØ>Ø&/×&CÑ&C×&WÑ&WÐØMØ'×;Ñ;×GÑG€KØEðÀ4÷ õ ð ÷3ô 3ó ð3÷o … r   r   c                   óN   a a€ ] tR t^yt oRtRtRR/V3R lV 3R llltRtVtV ;t	# )r(   aW  Represents the default scope of bot commands. Default commands are used if no commands with
a `narrower scope`_ are specified for the user.

.. _`narrower scope`: https://core.telegram.org/bots/api#determining-list-of-commands

.. versionadded:: 13.7
Attributes:
    type (:obj:`str`): Scope type :tg-const:`telegram.BotCommandScope.DEFAULT`.
r   Nc                ó.   <€ V ^8„  d   QhRS[ R,          /# ©r   r   Nr   )r   r   s   "€r   r   Ú#BotCommandScopeDefault.__annotate__†   ó   ø€ ÷ ñ ¡h°¥oñ r   c               óf   <€ \         SV `  \        P                  VR 7       V P	                  4        R# ©©r   r   N)r   r   r   r'   r   ©r   r   r   s   &$€r   r   ÚBotCommandScopeDefault.__init__†   s$   ø€ Ü‰Ñœo×5Ñ5À*ÐÔMØ�‰Žr   © ©
r<   r=   r>   r?   r@   rA   r   rD   rE   rF   rG   s   @@r   r(   r(   y   s'   ù‡ € ñð €Ið¸÷ ÷ õ r   r(   c                   óN   a a€ ] tR t^‹t oRtRtRR/V3R lV 3R llltRtVtV ;t	# )r*   zÁRepresents the scope of bot commands, covering all private chats.

.. versionadded:: 13.7

Attributes:
    type (:obj:`str`): Scope type :tg-const:`telegram.BotCommandScope.ALL_PRIVATE_CHATS`.
r   Nc                ó.   <€ V ^8„  d   QhRS[ R,          /# rJ   r   )r   r   s   "€r   r   Ú+BotCommandScopeAllPrivateChats.__annotate__–   rL   r   c               óf   <€ \         SV `  \        P                  VR 7       V P	                  4        R# rN   )r   r   r   r)   r   rP   s   &$€r   r   Ú'BotCommandScopeAllPrivateChats.__init__–   s$   ø€ Ü‰Ñœo×?Ñ?ÈJÐÔWØ�‰Žr   rR   rS   rG   s   @@r   r*   r*   ‹   s'   ù‡ € ñð €Ið¸÷ ÷ õ r   r*   c                   óN   a a€ ] tR t^›t oRtRtRR/V3R lV 3R llltRtVtV ;t	# )r,   zËRepresents the scope of bot commands, covering all group and supergroup chats.

.. versionadded:: 13.7
Attributes:
    type (:obj:`str`): Scope type :tg-const:`telegram.BotCommandScope.ALL_GROUP_CHATS`.
r   Nc                ó.   <€ V ^8„  d   QhRS[ R,          /# rJ   r   )r   r   s   "€r   r   Ú)BotCommandScopeAllGroupChats.__annotate__¥   rL   r   c               óf   <€ \         SV `  \        P                  VR 7       V P	                  4        R# rN   )r   r   r   r+   r   rP   s   &$€r   r   Ú%BotCommandScopeAllGroupChats.__init__¥   s$   ø€ Ü‰Ñœo×=Ñ=È*ÐÔUØ�‰Žr   rR   rS   rG   s   @@r   r,   r,   ›   ó'   ù‡ € ñð €Ið¸÷ ÷ õ r   r,   c                   óN   a a€ ] tR t^ªt oRtRtRR/V3R lV 3R llltRtVtV ;t	# )r.   záRepresents the scope of bot commands, covering all group and supergroup chat administrators.

.. versionadded:: 13.7
Attributes:
    type (:obj:`str`): Scope type :tg-const:`telegram.BotCommandScope.ALL_CHAT_ADMINISTRATORS`.
r   Nc                ó.   <€ V ^8„  d   QhRS[ R,          /# rJ   r   )r   r   s   "€r   r   Ú1BotCommandScopeAllChatAdministrators.__annotate__´   rL   r   c               óf   <€ \         SV `  \        P                  VR 7       V P	                  4        R# rN   )r   r   r   r-   r   rP   s   &$€r   r   Ú-BotCommandScopeAllChatAdministrators.__init__´   s%   ø€ Ü‰Ñœo×EÑEÐR\ÐÔ]Ø�‰Žr   rR   rS   rG   s   @@r   r.   r.   ª   r^   r   r.   c                   óN   a a€ ] tR t^¹t oRtRtRR/V3R lV 3R llltRtVtV ;t	# )r0   aÈ  Represents the scope of bot commands, covering a specific chat.

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

.. versionadded:: 13.7

Args:
    chat_id (:obj:`str` | :obj:`int`): |chat_id_group|

Attributes:
    type (:obj:`str`): Scope type :tg-const:`telegram.BotCommandScope.CHAT`.
    chat_id (:obj:`str` | :obj:`int`): |chat_id_group|
r   Nc                óD   <€ V ^8„  d   QhRS[ S[,          RS[R,          /# ©r   Úchat_idr   N©r   Úintr   )r   r   s   "€r   r   Ú BotCommandScopeChat.__annotate__Ë   ó#   ø€ ÷ 7ñ 7¡¡c¥	ð 7¹(ÀT½/ñ 7r   c               óh  <€ \         SV `  \        P                  VR 7       V P	                  4       ;_uu_ 4        \        V\        4      '       d   VP                  R4      '       d   TM
\        V4      V n	        V P                  V P                  3V n        RRR4       R#   + '       g   i     R# ; i©rO   Ú@N)r   r   r   r/   Ú	_unfrozenÚ
isinstancer   Ú
startswithri   rg   r   r   ©r   rg   r   r   s   &&$€r   r   ÚBotCommandScopeChat.__init__Ë   s|   ø€ Ü‰Ñœo×2Ñ2¸zÐÔJØ�^‰^×Õä% g¬s×3Ò3¸×8JÑ8JÈ3×8OÒ8O‘ÔUXÐY`ÓUað ŒLð #Ÿi™i¨¯©Ð6ˆDŒN÷	 ××Òúó   ¹-B Á'/B Â B1	©r   rg   ©rg   rS   rG   s   @@r   r0   r0   ¹   ó'   ù‡ € ñð €Ið7ÈD÷ 7÷ 7õ 7r   r0   c                   óN   a a€ ] tR t^Ôt oRtRtRR/V3R lV 3R llltRtVtV ;t	# )r2   a   Represents the scope of bot commands, covering all administrators of a specific group or
supergroup chat.

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

.. versionadded:: 13.7

Args:
    chat_id (:obj:`str` | :obj:`int`): |chat_id_group|
Attributes:
    type (:obj:`str`): Scope type :tg-const:`telegram.BotCommandScope.CHAT_ADMINISTRATORS`.
    chat_id (:obj:`str` | :obj:`int`): |chat_id_group|
r   Nc                óD   <€ V ^8„  d   QhRS[ S[,          RS[R,          /# rf   rh   )r   r   s   "€r   r   Ú.BotCommandScopeChatAdministrators.__annotate__æ   rk   r   c               óh  <€ \         SV `  \        P                  VR 7       V P	                  4       ;_uu_ 4        \        V\        4      '       d   VP                  R4      '       d   TM
\        V4      V n	        V P                  V P                  3V n        RRR4       R#   + '       g   i     R# ; irm   )r   r   r   r1   ro   rp   r   rq   ri   rg   r   r   rr   s   &&$€r   r   Ú*BotCommandScopeChatAdministrators.__init__æ   s|   ø€ Ü‰Ñœo×AÑAÈjÐÔYØ�^‰^×Õä% g¬s×3Ò3¸×8JÑ8JÈ3×8OÒ8O‘ÔUXÐY`ÓUað ŒLð #Ÿi™i¨¯©Ð6ˆDŒN÷	 ××Òúrt   ru   rv   rS   rG   s   @@r   r2   r2   Ô   rw   r   r2   c                   óN   a a€ ] tR t^ït oRtRtRR/V3R lV 3R llltRtVtV ;t	# )r4   a€  Represents the scope of bot commands, covering a specific member of a group or supergroup
chat.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`type`, :attr:`chat_id` and :attr:`user_id` are equal.

.. versionadded:: 13.7

Args:
    chat_id (:obj:`str` | :obj:`int`): |chat_id_group|
    user_id (:obj:`int`): Unique identifier of the target user.

Attributes:
    type (:obj:`str`): Scope type :tg-const:`telegram.BotCommandScope.CHAT_MEMBER`.
    chat_id (:obj:`str` | :obj:`int`): |chat_id_group|
    user_id (:obj:`int`): Unique identifier of the target user.
r   Nc                óJ   <€ V ^8„  d   QhRS[ S[,          RS[RS[R,          /# )r   rg   Úuser_idr   Nrh   )r   r   s   "€r   r   Ú&BotCommandScopeChatMember.__annotate__  s0   ø€ ÷ Eñ E¡¡c¥	ð E±Cð EÉÐSWÍñ Er   c               óŠ  <€ \         SV `  \        P                  VR 7       V P	                  4       ;_uu_ 4        \        V\        4      '       d   VP                  R4      '       d   TM
\        V4      V n	        W n
        V P                  V P                  V P                  3V n        RRR4       R#   + '       g   i     R# ; irm   )r   r   r   r3   ro   rp   r   rq   ri   rg   r   r   r   )r   rg   r   r   r   s   &&&$€r   r   Ú"BotCommandScopeChatMember.__init__  s‡   ø€ Ü‰Ñœo×9Ñ9ÀjÐÔQØ�^‰^×Õä% g¬s×3Ò3¸×8JÑ8JÈ3×8OÒ8O‘ÔUXÐY`ÓUað ŒLð !(ŒLØ"Ÿi™i¨¯©°t·|±|ÐDˆDŒN÷ ××Òús   ¹-B1Á'A B1Â1C	)r   rg   r   )rg   r   rS   rG   s   @@r   r4   r4   ï   s,   ù‡ € ñð$ '€IðEÐZ^÷ E÷ Eõ Er   r4   N)r@   Útypingr   r   Útelegramr   Útelegram._telegramobjectr   Útelegram._utilsr   Útelegram._utils.typesr   r	   r   r(   r*   r,   r.   r0   r2   r4   rR   r   r   Ú<module>rˆ      s…   ðñ( Mç 'å Ý 3Ý  Ý *çÝôU3�nô U3ôp˜_ô ô$ _ô ô  ?ô ô¨?ô ô7˜/ô 7ô67¨ô 7ô6E ö Er   