v1

latestOpenAPI 3.0.32026-07-1416059.6 KB

getFile

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

file_idstring

File identifier to get info about

Response

200

okboolean

Example response

{
  "ok": true,
  "result": {
    "file_id": "ABC12345XYZ6789...",
    "file_size": 39082,
    "file_path": "document/file_1.webp"
  }
}