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
| 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
telegram::getFile(file_id: string | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);telegram::getFile(['file_id' => string | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);telegram::getFile();$this->getFile(file_id: string | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);$this->getFile(['file_id' => string | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);$this->getFile();