{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telegram/json-schema/telegram-chat-response-schema.json",
  "title": "ChatResponse",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telegram-chat-management-api-openapi.yml#/components/schemas/ChatResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "result": {
      "$ref": "#/$defs/Chat"
    }
  },
  "$defs": {
    "Chat": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Unique identifier for this chat"
        },
        "type": {
          "type": "string",
          "enum": [
            "private",
            "group",
            "supergroup",
            "channel"
          ],
          "description": "Type of chat"
        },
        "title": {
          "type": "string",
          "description": "Title for supergroups, channels and group chats"
        },
        "username": {
          "type": "string",
          "description": "Username for private chats, supergroups and channels"
        },
        "first_name": {
          "type": "string",
          "description": "First name of the other party in a private chat"
        },
        "last_name": {
          "type": "string",
          "description": "Last name of the other party in a private chat"
        },
        "description": {
          "type": "string",
          "description": "Description for groups, supergroups and channel chats"
        },
        "invite_link": {
          "type": "string",
          "description": "Primary invite link for the chat"
        },
        "member_count": {
          "type": "integer",
          "description": "Number of members in a chat"
        }
      },
      "required": [
        "id",
        "type"
      ]
    }
  }
}