
    Yi                     x    S r SSKrSSKJrJr  SSKJr  SSKJ	r	J
r
  SSKJr  \(       a  SSKJr   " S S	\5      rg)
zRThis module contains an object that represents a Telegram Prepared inline Message.    N)TYPE_CHECKINGOptional)TelegramObject)extract_tzinfo_from_defaultsfrom_timestamp)JSONDict)Botc            	          ^  \ rS rSrSrSrSS.S\S\R                  S\	\
   4U 4S	 jjjr\ SS
\	\
   S\	S   S\	S    4U 4S jjj5       rSrU =r$ )PreparedInlineMessage   a  Describes an inline message to be sent by a user of a Mini App.

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

.. versionadded:: 21.8

Args:
    id (:obj:`str`): Unique identifier of the prepared message
    expiration_date (:class:`datetime.datetime`): Expiration date of the prepared message.
        Expired prepared messages can no longer be used.
        |datetime_localization|

Attributes:
    id (:obj:`str`): Unique identifier of the prepared message
    expiration_date (:class:`datetime.datetime`): Expiration date of the prepared message.
        Expired prepared messages can no longer be used.
        |datetime_localization|
)expiration_dateidN
api_kwargsr   r   r   c                |   > [         TU ]  US9  Xl        X l        U R                  4U l        U R                  5         g )Nr   )super__init__r   r   	_id_attrs_freeze)selfr   r   r   	__class__s       Q/app/.venv/lib/python3.13/site-packages/telegram/_inline/preparedinlinemessage.pyr   PreparedInlineMessage.__init__6   s6     	J/-<''    databotr	   returnc                    > U R                  U5      nUc  g[        U5      n[        UR                  S5      US9US'   [        TU ]  XS9$ )z,See :meth:`telegram.TelegramObject.de_json`.Nr   )tzinfo)r   r   )_parse_datar   r   getr   de_json)clsr   r   
loc_tzinfor   s       r   r"   PreparedInlineMessage.de_jsonE   sU    
 t$< 2#6
"0:K1LU_"`wD22r   )r   r   r   )N)__name__
__module____qualname____firstlineno____doc__	__slots__strdtmdatetimer   r   r   classmethodr"   __static_attributes____classcell__)r   s   @r   r   r      s    ( *I *. 
 X&  >B3H%3,4UO3	)	*3 3r   r   )r*   r.   r-   typingr   r   telegram._telegramobjectr   telegram._utils.datetimer   r   telegram._utils.typesr   telegramr	   r    r   r   <module>r8      s,   & Y  * 3 Q *43N 43r   