o
    FÆh#  ã                   @  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                      sB   e Zd ZU dZeZdZded< 	 erd‡ fd	d
„Z	‡  Z
S ‡  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
    ÚgetFileÚstrÚfile_idÚ_GetFile__pydantic_kwargsr   ÚreturnÚNonec                  s   t ƒ jdd|i|¤Ž d S )Nr   © )ÚsuperÚ__init__)Ú__pydantic__self__r   r   ©Ú	__class__r   úK/var/www/html/venv/lib/python3.10/site-packages/aiogram/methods/get_file.pyr      s   zGetFile.__init__)r   r   r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__returning__Ú__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
    