L i ndZddlZddlmZmZddlmZddlm Z m Z ddl m Z erddl mZGdd eZy) zRThis module contains an object that represents a Telegram Prepared inline Message.N) TYPE_CHECKINGOptional)TelegramObject)extract_tzinfo_from_defaultsfrom_timestamp)JSONDict)Botc~eZdZdZdZdddedejdee ffdZ e dd e d ed d dffd Z xZ S)PreparedInlineMessageaDescribes 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_dateidN api_kwargsr r rct||||_||_|jf|_|j y)Nr)super__init__r r _id_attrs_freeze)selfr r r __class__s l/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_inline/preparedinlinemessage.pyrzPreparedInlineMessage.__init__7s: J/-<'' databotr returnc|j|}t|}t|jd||d<t|||S)z,See :meth:`telegram.TelegramObject.de_json`.r )tzinfo)rr) _parse_datarrgetrde_json)clsrr loc_tzinfors rr zPreparedInlineMessage.de_jsonFsOt$2#6 "0:K1LU_"` wDc22r)N)__name__ __module__ __qualname____doc__ __slots__strdtmdatetimerrr classmethodr __classcell__)rs@rr r sl(*I*.     X& 383(5/3E\33rr )r&r*r)typingrrtelegram._telegramobjectrtelegram._utils.datetimerrtelegram._utils.typesrtelegramr r rrr3s,&Y*3Q*/3N/3r