StaticGramBot API

WebhookInfo

Describes the current status of a webhook.

Поля

urlString
Webhook URL, may be empty if webhook is not set up
True, if a custom certificate was provided for webhook certificate checks
Number of updates awaiting delivery
ip_addressStringoptional
Currently used webhook IP address
last_error_dateIntegeroptional
Unix time for the most recent error that happened when trying to deliver an update via webhook
last_error_messageStringoptional
Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters
max_connectionsIntegeroptional
The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
allowed_updatesArray of Stringoptional
A list of update types the bot is subscribed to. Defaults to all update types except chat_member, message_reaction, and message_reaction_count.

Минимальный JSON

JSON
{
  "url": "...",
  "has_custom_certificate": true,
  "pending_update_count": 1
}

Где используется

Методы

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top