L izdZddlmZmZddlmZddlmZddlm Z ddl m Z ddl m Z erddlmZGd d eZy ) zMThis module contains an object that represents a Telegram ChosenInlineResult.) TYPE_CHECKINGOptional)Location)TelegramObject)User)de_json_optional)JSONDict)BotceZdZdZdZ ddddedededeed eed ee f fd Z e dd e d edddffd Z xZ S)ChosenInlineResulta  Represents a result of an inline query that was chosen by the user and sent to their chat partner. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`result_id` is equal. Note: * In Python :keyword:`from` is a reserved word. Use :paramref:`from_user` instead. * It is necessary to enable inline feedback via `@Botfather `_ in order to receive these objects in updates. Args: result_id (:obj:`str`): The unique identifier for the result that was chosen. from_user (:class:`telegram.User`): The user that chose the result. location (:class:`telegram.Location`, optional): Sender location, only for bots that require user location. inline_message_id (:obj:`str`, optional): Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message. query (:obj:`str`): The query that was used to obtain the result. Attributes: result_id (:obj:`str`): The unique identifier for the result that was chosen. from_user (:class:`telegram.User`): The user that chose the result. location (:class:`telegram.Location`): Optional. Sender location, only for bots that require user location. inline_message_id (:obj:`str`): Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message. query (:obj:`str`): The query that was used to obtain the result. ) from_userinline_message_idlocationquery result_idN api_kwargsrr rrrrct||||_||_||_||_||_|jf|_|jy)Nr) super__init__rr rrr _id_attrs_freeze)selfrr rrrr __class__s b/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_choseninlineresult.pyrzChosenInlineResult.__init__GsR J/(( ,4 0A..* databotr returnc|j|}t|jddt||d<t|j dt ||d<t |||S)z,See :meth:`telegram.TelegramObject.de_json`.fromNr r)rr) _parse_datarpoprgetrrde_json)clsrrrs rr%zChosenInlineResult.de_json_sbt$-TXXfd-CT3O[+DHHZ,@(CPZwDc22r)NN)N)__name__ __module__ __qualname____doc__ __slots__strrrrr r classmethodr% __classcell__)rs@rr r "s DUI(,+/ *.  8$  $C= X&0 38 3(5/ 3EY 3 3rr N)r*typingrrtelegram._files.locationrtelegram._telegramobjectrtelegram._userrtelegram._utils.argumentparsingrtelegram._utils.typesr telegramr r rrr7s1(T*-3<*G3G3r