L ivdZddlmZmZmZddlmZddlmZddl m Z ddl m Z m Z erddlmZGdd eZy ) zDThis module contains an object that represents a Telegram ChatPhoto.) TYPE_CHECKINGFinalOptional) constants)TelegramObject) DEFAULT_NONE)JSONDictODVInput)Filec \eZdZUdZdZdddedededed eef fd Ze e e e dd d e e d e e de e de e d eeddf dZ e e e e dd d e e d e e de e de e d eeddf dZ ejj Zeeed< ejj*Zeeed<xZS) ChatPhotoa This object represents a chat photo. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`small_file_unique_id` and :attr:`big_file_unique_id` are equal. Args: small_file_id (:obj:`str`): File identifier of small (:tg-const:`telegram.ChatPhoto.SIZE_SMALL` x :tg-const:`telegram.ChatPhoto.SIZE_SMALL`) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. small_file_unique_id (:obj:`str`): Unique file identifier of small (:tg-const:`telegram.ChatPhoto.SIZE_SMALL` x :tg-const:`telegram.ChatPhoto.SIZE_SMALL`) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. big_file_id (:obj:`str`): File identifier of big (:tg-const:`telegram.ChatPhoto.SIZE_BIG` x :tg-const:`telegram.ChatPhoto.SIZE_BIG`) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. big_file_unique_id (:obj:`str`): Unique file identifier of big (:tg-const:`telegram.ChatPhoto.SIZE_BIG` x :tg-const:`telegram.ChatPhoto.SIZE_BIG`) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. Attributes: small_file_id (:obj:`str`): File identifier of small (:tg-const:`telegram.ChatPhoto.SIZE_SMALL` x :tg-const:`telegram.ChatPhoto.SIZE_SMALL`) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. small_file_unique_id (:obj:`str`): Unique file identifier of small (:tg-const:`telegram.ChatPhoto.SIZE_SMALL` x :tg-const:`telegram.ChatPhoto.SIZE_SMALL`) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. big_file_id (:obj:`str`): File identifier of big (:tg-const:`telegram.ChatPhoto.SIZE_BIG` x :tg-const:`telegram.ChatPhoto.SIZE_BIG`) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. big_file_unique_id (:obj:`str`): Unique file identifier of big (:tg-const:`telegram.ChatPhoto.SIZE_BIG` x :tg-const:`telegram.ChatPhoto.SIZE_BIG`) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. ) big_file_idbig_file_unique_id small_file_idsmall_file_unique_idN api_kwargsrrrrrct||||_||_||_||_|j|j f|_|jy)Nr)super__init__rrrr _id_attrs_freeze)selfrrrrr __class__s _/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_files/chatphoto.pyrzChatPhoto.__init__Ts] J/"/)=! +'9  % %  # #  ) read_timeout write_timeoutconnect_timeout pool_timeoutrrrrr returnr c|K|jj|j|||||d{S7w)aConvenience wrapper over :meth:`telegram.Bot.get_file` for getting the small (:tg-const:`telegram.ChatPhoto.SIZE_SMALL` x :tg-const:`telegram.ChatPhoto.SIZE_SMALL`) chat photo For the documentation of the arguments, please see :meth:`telegram.Bot.get_file`. Returns: :class:`telegram.File` Raises: :class:`telegram.error.TelegramError` file_idrrrr rN)get_botget_filerrrrrr rs rget_small_filezChatPhoto.get_small_filejsH,\\^,,&&%'+%! -    3<:<c|K|jj|j|||||d{S7w)aConvenience wrapper over :meth:`telegram.Bot.get_file` for getting the big (:tg-const:`telegram.ChatPhoto.SIZE_BIG` x :tg-const:`telegram.ChatPhoto.SIZE_BIG`) chat photo For the documentation of the arguments, please see :meth:`telegram.Bot.get_file`. Returns: :class:`telegram.File` Raises: :class:`telegram.error.TelegramError` r#N)r%r&rr's r get_big_filezChatPhoto.get_big_filesH,\\^,,$$%'+%! -    r) SIZE_SMALLSIZE_BIG)__name__ __module__ __qualname____doc__ __slots__strrr rrr floatr(r+r ChatPhotoSizeSMALLr,rint__annotations__BIGr- __classcell__)rs@rr r s`*XI*."   X&2)5)5+7(4)- uo    "%  uo  X&   D)5)5+7(4)- uo    "%  uo  X&   >'44::Jc :%2266HeCj6rr N)r1typingrrrtelegramrtelegram._telegramobjectrtelegram._utils.defaultvaluertelegram._utils.typesr r r r rrrAs1&K11354QQr