getFile

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 File object is returned. The file can then be downloaded via the link https://api.telegram.org/file/bot/, where 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 getFile again.

Arguments
Name Type Description Required
file_id string | null | array File identifier to get information about no
token string | null You can use this method on another bot with specify this parameter no
forgot bool | null You can set to not receive request result, dont set it or pass null for turn it off no
answer bool | null You can set to answer to webhook, dont set it or pass null for turn it off no

Output : BPT\types\file | BPT\types\responseError | bool

Static or normal : Static

Examples :

request::getFile(file_id: string | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);
request::getFile(['file_id' => string | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);
request::getFile();