{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telegram/json-schema/telegram-user-response-schema.json",
  "title": "UserResponse",
  "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/UserResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "result": {
      "$ref": "#/$defs/User"
    }
  },
  "$defs": {
    "User": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Unique identifier for this user or bot"
        },
        "is_bot": {
          "type": "boolean",
          "description": "True if this user is a bot"
        },
        "first_name": {
          "type": "string",
          "description": "User's or bot's first name"
        },
        "last_name": {
          "type": "string",
          "description": "User's or bot's last name"
        },
        "username": {
          "type": "string",
          "description": "User's or bot's username"
        },
        "language_code": {
          "type": "string",
          "description": "IETF language tag of the user's language"
        },
        "is_premium": {
          "type": "boolean",
          "description": "True if this user is a Telegram Premium user"
        }
      },
      "required": [
        "id",
        "is_bot",
        "first_name"
      ]
    }
  }
}