{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telegram/json-schema/telegram-webhook-info-response-schema.json",
  "title": "WebhookInfoResponse",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telegram-getting-updates-api-openapi.yml#/components/schemas/WebhookInfoResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "result": {
      "$ref": "#/$defs/WebhookInfo"
    }
  },
  "$defs": {
    "WebhookInfo": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "Webhook URL, may be empty if webhook is not set up"
        },
        "has_custom_certificate": {
          "type": "boolean",
          "description": "True if a custom certificate was provided"
        },
        "pending_update_count": {
          "type": "integer",
          "description": "Number of updates awaiting delivery"
        },
        "ip_address": {
          "type": "string",
          "description": "Currently used webhook IP address"
        },
        "last_error_date": {
          "type": "integer",
          "description": "Unix time for the most recent error"
        },
        "last_error_message": {
          "type": "string",
          "description": "Error message in human-readable format for the most recent webhook error"
        },
        "max_connections": {
          "type": "integer",
          "description": "Maximum allowed number of simultaneous HTTPS connections"
        },
        "allowed_updates": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of update types the bot is subscribed to"
        }
      },
      "required": [
        "url",
        "has_custom_certificate",
        "pending_update_count"
      ]
    }
  }
}