L i fdZddlmZmZddlmZddlmZddlm Z m Z erddl m Z GddeZ y ) z#Common base class for media objects) TYPE_CHECKINGOptional)TelegramObject) DEFAULT_NONE)JSONDictODVInput)Filec eZdZdZdZ ddddededeedeeffd Z e e e e dd d e e d e e d e e de e deeddf dZ xZS) _BaseMediumaBase class for objects representing the various media file types. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`file_unique_id` is equal. Args: file_id (:obj:`str`): Identifier for this file, which can be used to download or reuse the file. file_unique_id (:obj:`str`): Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. file_size (:obj:`int`, optional): File size. Attributes: file_id (:obj:`str`): File identifier. file_unique_id (:obj:`str`): Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. file_size (:obj:`int`): Optional. File size. )file_id file_sizefile_unique_idN api_kwargsr rr rct||t||_t||_||_|jf|_y)Nr)super__init__strr rr _id_attrs)selfr rr r __class__s a/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_files/_basemedium.pyrz_BaseMedium.__init__8sF J/ L #&~#6(1--/) read_timeout write_timeoutconnect_timeout pool_timeoutrrrrrreturnr c|K|jj|j|||||d{S7w)aConvenience wrapper over :meth:`telegram.Bot.get_file` For the documentation of the arguments, please see :meth:`telegram.Bot.get_file`. Returns: :class:`telegram.File` Raises: :class:`telegram.error.TelegramError` )r rrrrrN)get_botget_filer )rrrrrrs rr!z_BaseMedium.get_fileJsF(\\^,,LL%'+%! -    s 3<:<)N)__name__ __module__ __qualname____doc__ __slots__rrintrrrrfloatr! __classcell__)rs@rr r s,;I $( 0 *. 000C= 0 X& 0*)5)5+7(4)- uo    "%  uo  X&   rr N)r%typingrrtelegram._telegramobjectrtelegram._utils.defaultvaluertelegram._utils.typesrrtelegramr r rrr0s*&**354F .F r