+
    ÁFñjQ'  ã                   ó  € R t ^ RIt^ RIHtHt ^ RIHt ^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHt ^ RIHt ^ R	IHt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# )zFThis module contains the classes that represent Telegram MessageOigin.N)ÚTYPE_CHECKINGÚFinal)Ú	constants)ÚChat)ÚTelegramObject)ÚUser)Úenum)Úde_json_optional)Úextract_tzinfo_from_defaultsÚfrom_timestamp©ÚJSONDict)ÚBotc                   ó8  a a€ ] tR t^%t oRtR
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# )ÚMessageOriginaK  
Base class for telegram MessageOrigin object, it can be one of:

* :class:`MessageOriginUser`
* :class:`MessageOriginHiddenUser`
* :class:`MessageOriginChat`
* :class:`MessageOriginChannel`

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

.. versionadded:: 20.8

Args:
    type (:obj:`str`): Type of the message origin, can be on of:
        :attr:`~telegram.MessageOrigin.USER`, :attr:`~telegram.MessageOrigin.HIDDEN_USER`,
        :attr:`~telegram.MessageOrigin.CHAT`, or :attr:`~telegram.MessageOrigin.CHANNEL`.
    date (:obj:`datetime.datetime`): Date the message was sent originally.
        |datetime_localization|

Attributes:
    type (:obj:`str`): Type of the message origin, can be on of:
        :attr:`~telegram.MessageOrigin.USER`, :attr:`~telegram.MessageOrigin.HIDDEN_USER`,
        :attr:`~telegram.MessageOrigin.CHAT`, or :attr:`~telegram.MessageOrigin.CHANNEL`.
    date (:obj:`datetime.datetime`): Date the message was sent originally.
        |datetime_localization|
Ú
api_kwargsNc                óN   <€ V ^8„  d   QhRS[ RS[P                  RS[R,          /# )é   ÚtypeÚdater   N)ÚstrÚdtmÚdatetimer   )ÚformatÚ__classdict__s   "€ÚM/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/_messageorigin.pyÚ__annotate__ÚMessageOrigin.__annotate__P   s1   ø€ ÷ ñ áðñ �l‰lðñ
 ˜t•Oñó    c               óâ   <€ \         SV `  VR 7       \        P                  ! \        P
                  W4      V n        W n        V P                  V P                  3V n        V P                  4        R# ))r   N)
ÚsuperÚ__init__r   Ú
get_memberr   ÚMessageOriginTyper   r   Ú	_id_attrsÚ_freeze)Úselfr   r   r   Ú	__class__s   &&&$€r   r!   ÚMessageOrigin.__init__P   sV   ø€ ô 	‰Ñ JÐÔ/äŸš¬×)DÑ)DÀdÓQˆŒ	Ø"&Œ	ð �I‰IØ�I‰Ið
ˆŒð 	�‰Ž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   c   s"   ø€ ÷ 3ñ 3™8ð 3¨,ð 3À/ñ 3r   c                ó¨  <€ V P                  V4      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      # \        V4      p\        VP                  R4      VR7      VR&   RV9   d$   \        VP                  R4      \         V4      VR&   RV9   d$   \        VP                  R4      \"        V4      VR&   RV9   d$   \        VP                  R4      \"        V4      VR&   \$        SV `1  WR7      # )zxConverts JSON data to the appropriate :class:`MessageOrigin` object, i.e. takes
care of selecting the correct subclass.
r   )r*   r+   r   )ÚtzinfoÚsender_userÚsender_chatÚchat)Ú_parse_dataÚUSERÚMessageOriginUserÚHIDDEN_USERÚMessageOriginHiddenUserÚCHATÚMessageOriginChatÚCHANNELÚMessageOriginChannelr   ÚgetÚpopÚde_jsonr
   r   r	   r   r   r    )Úclsr*   r+   Ú_class_mappingÚ
loc_tzinfor'   s   &&&  €r   r=   ÚMessageOrigin.de_jsonb   s  ø€ ð
 �‰˜tÓ$ˆð �H‰HÔ'Ø�O‰OÔ4Ø�H‰HÔ'Ø�K‰KÔ-ð	:
ˆð ”-Ó D§H¡H¨VÓ$4¸Ô$FØ!§(¡(¨6Ó"2Õ3×;Ñ;ÀÐ;ÓOÐOä1°#Ó6ˆ
Ü% d§h¡h¨vÓ&6¸zÔJˆˆV‰à˜DÔ Ü"2°4·8±8¸MÓ3JÌDÐRUÓ"VˆD�Ñà˜DÔ Ü"2°4·8±8¸MÓ3JÌDÐRUÓ"VˆD�Ñà�TŒ>Ü+¨D¯H©H°VÓ,<¼dÀCÓHˆD�‰Lä‰w‰ DˆÓ2Ð2r   c                óŠ   <€ V ^8„  d   Qh/ S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   # )r   r3   r5   r7   r9   )r   r   )r   r   s   "€r   r   r   %   sQ   ø‡ ‚ ñD ‘�*Ñ7ñE ñH ‘s•ÑEñI ñL ‘�*Ñ7ñM ñP ‘3�ZÑ=òQ r   )r$   r   r   )r   r   ©N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r   r#   r3   r5   r7   r9   r!   Úclassmethodr=   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r'   r   s   @@r   r   r   %   s˜   ù‡ € ñð8€Ið
 !×2Ñ2×7Ñ7€DØ<Ø'×9Ñ9×EÑE€KØCØ ×2Ñ2×7Ñ7€DØ<Ø#×5Ñ5×=Ñ=€GØ?ðð
 '+÷õ ð$ ÷3ô 3ó ð3÷} … 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	# )r4   aB  
The message was originally sent by a known user.

.. versionadded:: 20.8

Args:
    date (:obj:`datetime.datetime`): Date the message was sent originally.
        |datetime_localization|
    sender_user (:class:`telegram.User`): User that sent the message originally.

Attributes:
    type (:obj:`str`): Type of the message origin. Always
        :tg-const:`~telegram.MessageOrigin.USER`.
    date (:obj:`datetime.datetime`): Date the message was sent originally.
        |datetime_localization|
    sender_user (:class:`telegram.User`): User that sent the message originally.
r   Nc                óN   <€ V ^8„  d   QhRS[ P                  RS[RS[R,          /# )r   r   r/   r   N)r   r   r   r   )r   r   s   "€r   r   ÚMessageOriginUser.__annotate__–   s1   ø€ ÷ 
1ñ 
1á�l‰lð
1ñ ð
1ñ
 ˜t•Oñ
1r   c               ó´   <€ \         SV `  V P                  WR 7       V P                  4       ;_uu_ 4        W n        RRR4       R#   + '       g   i     R# ; i©)r   r   r   N)r    r!   r3   Ú	_unfrozenr/   )r&   r   r/   r   r'   s   &&&$€r   r!   ÚMessageOriginUser.__init__–   s=   ø€ ô 	‰Ñ˜dŸi™i¨dÐÔJà�^‰^×ÕØ%0Ô÷ ××Òúó   µAÁA	)r/   ©
rD   rE   rF   rG   rH   rI   r!   rL   rM   rN   rO   s   @@r   r4   r4   �   s*   ù‡ € ñð$ !€Ið
1ð
 '+÷
1÷ 
1õ 
1r   r4   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	# )r6   aV  
The message was originally sent by an unknown user.

.. versionadded:: 20.8

Args:
    date (:obj:`datetime.datetime`): Date the message was sent originally.
        |datetime_localization|
    sender_user_name (:obj:`str`): Name of the user that sent the message originally.

Attributes:
    type (:obj:`str`): Type of the message origin. Always
        :tg-const:`~telegram.MessageOrigin.HIDDEN_USER`.
    date (:obj:`datetime.datetime`): Date the message was sent originally.
        |datetime_localization|
    sender_user_name (:obj:`str`): Name of the user that sent the message originally.
r   Nc                óN   <€ V ^8„  d   QhRS[ P                  RS[RS[R,          /# )r   r   Úsender_user_namer   N)r   r   r   r   )r   r   s   "€r   r   Ú$MessageOriginHiddenUser.__annotate__¸   s1   ø€ ÷ 
:ñ 
:á�l‰lð
:ñ ð
:ñ
 ˜t•Oñ
:r   c               ó´   <€ \         SV `  V P                  WR 7       V P                  4       ;_uu_ 4        W n        RRR4       R#   + '       g   i     R# ; irT   )r    r!   r5   rU   r[   )r&   r   r[   r   r'   s   &&&$€r   r!   Ú MessageOriginHiddenUser.__init__¸   s?   ø€ ô 	‰Ñ˜d×.Ñ.°TÐÔQà�^‰^×ÕØ)9Ô!÷ ××ÒúrW   )r[   rX   rO   s   @@r   r6   r6   £   s*   ù‡ € ñð$ &€Ið
:ð
 '+÷
:÷ 
:õ 
:r   r6   c                   ó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	# )r8   a†  
The message was originally sent on behalf of a chat to a group chat.

.. versionadded:: 20.8

Args:
    date (:obj:`datetime.datetime`): Date the message was sent originally.
        |datetime_localization|
    sender_chat (:class:`telegram.Chat`): Chat that sent the message originally.
    author_signature (:obj:`str`, optional): For messages originally sent by an anonymous chat
        administrator, original message author signature

Attributes:
    type (:obj:`str`): Type of the message origin. Always
        :tg-const:`~telegram.MessageOrigin.CHAT`.
    date (:obj:`datetime.datetime`): Date the message was sent originally.
        |datetime_localization|
    sender_chat (:class:`telegram.Chat`): Chat that sent the message originally.
    author_signature (:obj:`str`): Optional. For messages originally sent by an anonymous chat
        administrator, original message author signature
Nr   c          	      ób   <€ V ^8„  d   QhRS[ P                  RS[RS[R,          RS[R,          /# )r   r   r0   Úauthor_signatureNr   )r   r   r   r   r   )r   r   s   "€r   r   ÚMessageOriginChat.__annotate__á   sE   ø€ ÷ Añ Aá�l‰lðAñ ðAñ  �*ð	Añ ˜t•OñAr   c               óÀ   <€ \         SV `  V P                  WR 7       V P                  4       ;_uu_ 4        W n        W0n        RRR4       R#   + '       g   i     R# ; irT   )r    r!   r7   rU   r0   ra   )r&   r   r0   ra   r   r'   s   &&&&$€r   r!   ÚMessageOriginChat.__init__á   sC   ø€ ô 	‰Ñ˜dŸi™i¨dÐÔJà�^‰^×ÕØ%0ÔØ0@Ô!÷ ××Òús   µAÁA	)ra   r0   rC   rX   rO   s   @@r   r8   r8   Å   s.   ù‡ € ñð,€Iñ
Að '+÷A÷ Aö Ar   r8   c                   ó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	# )r:   a‘  
The message was originally sent to a channel chat.

.. versionadded:: 20.8

Args:
    date (:obj:`datetime.datetime`): Date the message was sent originally.
        |datetime_localization|
    chat (:class:`telegram.Chat`): Channel chat to which the message was originally sent.
    message_id (:obj:`int`): Unique message identifier inside the chat.
    author_signature (:obj:`str`, optional): Signature of the original post author.

Attributes:
    type (:obj:`str`): Type of the message origin. Always
        :tg-const:`~telegram.MessageOrigin.CHANNEL`.
    date (:obj:`datetime.datetime`): Date the message was sent originally.
        |datetime_localization|
    chat (:class:`telegram.Chat`): Channel chat to which the message was originally sent.
    message_id (:obj:`int`): Unique message identifier inside the chat.
    author_signature (:obj:`str`): Optional. Signature of the original post author.
Nr   c                óh   <€ V ^8„  d   QhRS[ P                  RS[RS[RS[R,          RS[R,          /# )r   r   r1   Ú
message_idra   Nr   )r   r   r   Úintr   r   )r   r   s   "€r   r   Ú!MessageOriginChannel.__annotate__  sP   ø€ ÷ Añ Aá�l‰lðAñ ðAñ ð	Añ
  �*ðAñ ˜t•OñAr   c               óÌ   <€ \         SV `  V P                  WR 7       V P                  4       ;_uu_ 4        W n        W0n        W@n        RRR4       R#   + '       g   i     R# ; irT   )r    r!   r9   rU   r1   rg   ra   )r&   r   r1   rg   ra   r   r'   s   &&&&&$€r   r!   ÚMessageOriginChannel.__init__  sG   ø€ ô 	‰Ñ˜dŸl™l°ÐÔMà�^‰^×ÕØ"ŒIØ#-ŒOØ0@Ô!÷ ××Òús   µAÁA#	)ra   r1   rg   rC   rX   rO   s   @@r   r:   r:   ð   s.   ù‡ € ñð,€IñAð '+÷A÷ Aö Ar   r:   )rH   r   r   Útypingr   r   Útelegramr   Útelegram._chatr   Útelegram._telegramobjectr   Útelegram._userr   Útelegram._utilsr   Útelegram._utils.argumentparsingr	   Útelegram._utils.datetimer
   r   Útelegram._utils.typesr   r   r   r4   r6   r8   r:   © r   r   Ú<module>rv      su   ðñ& Mã ß 'å Ý Ý 3Ý Ý  Ý <ß QÝ *çÝôY3�Nô Y3ôx1˜ô 1ôD:˜mô :ôD(A˜ô (AôV+A˜=ö +Ar   