a
    :¶g#  ã                   @  sL   d dl mZ d dlmZmZ ddlmZ ddlmZ G dd„ dee ƒZ	d	S )
é    )Úannotations)ÚTYPE_CHECKINGÚAnyé   )ÚFileé   )ÚTelegramMethodc                      s@   e Zd ZU dZeZdZded< er8ddddœ‡ fdd	„Z	‡  Z
S )
ÚGetFilea  
    Use this method to get basic information about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a :class:`aiogram.types.file.File` object is returned. The file can then be downloaded via the link :code:`https://api.telegram.org/file/bot<token>/<file_path>`, where :code:`<file_path>` is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling :class:`aiogram.methods.get_file.GetFile` again.
    **Note:** This function may not preserve the original file name and MIME type. You should save the file's MIME type and name (if available) when the File object is received.

    Source: https://core.telegram.org/bots/api#getfile
    ZgetFileÚstrÚfile_idr   ÚNone)r   Ú_GetFile__pydantic_kwargsÚreturnc                  s   t ƒ jf d|i|¤Ž d S )Nr   )ÚsuperÚ__init__)Z__pydantic__self__r   r   ©Ú	__class__© úu/var/www/vosh/data/www/fastworkle.ru/webshop-tgbot-v.1.0/venv/lib/python3.9/site-packages/aiogram/methods/get_file.pyr      s    zGetFile.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Z__returning__Z__api_method__Ú__annotations__r   r   Ú__classcell__r   r   r   r   r	   	   s   
r	   N)
Ú
__future__r   Útypingr   r   Útypesr   Úbaser   r	   r   r   r   r   Ú<module>   s   