{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telegram/json-schema/telegram-file-response-schema.json",
  "title": "FileResponse",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telegram-bot-info-api-openapi.yml#/components/schemas/FileResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "result": {
      "$ref": "#/$defs/File"
    }
  },
  "$defs": {
    "File": {
      "type": "object",
      "properties": {
        "file_id": {
          "type": "string",
          "description": "Identifier for this file, which can be used to download or reuse the file"
        },
        "file_unique_id": {
          "type": "string",
          "description": "Unique identifier for this file (stable across bots)"
        },
        "file_size": {
          "type": "integer",
          "description": "File size in bytes"
        },
        "file_path": {
          "type": "string",
          "description": "File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file."
        }
      },
      "required": [
        "file_id",
        "file_unique_id"
      ]
    }
  }
}