---
title: "getFile"
method: POST
path: "/bot{token}/getFile"
---

# getFile

`POST /bot{token}/getFile`

Use this method to get basic info about a file and prepare it for downloading.

## Path parameters

- `token` string, required

## Request body

- object
  - `file_id` string — File identifier to get info about

## Response `200`

200

- object
  - `ok` boolean
  - `result` object
    - `file_id` string
    - `file_size` integer
    - `file_path` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/telegram/apis/api-settings.md) · [All operations](https://skmtc.net/telegram/apis/api-settings/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/telegram/api-settings/versions/1933ff0a8d5f/schema)
