v1
latestOpenAPI 3.0.32026-07-1416059.6 KBgetFile
Use this method to get basic info about a file and prepare it for downloading.
post/bot{token}/getFile
Path parameters
tokenstring required
Your Bot Token
Request body
Response
200
Example response
{
"ok": true,
"result": {
"file_id": "ABC12345XYZ6789...",
"file_size": 39082,
"file_path": "document/file_1.webp"
}
}