Getting updates

WebhookInfo

Describes the current status of a webhook.

fields

fieldtyperequireddescription
urlstringrequiredWebhook URL, may be empty if webhook is not set up
has_custom_certificatebooleanrequiredTrue, if a custom certificate was provided for webhook certificate checks
pending_update_countnumberrequiredNumber of updates awaiting delivery
ip_addressstringoptionalOptional. Currently used webhook IP address
last_error_datenumberoptionalOptional. Unix time for the most recent error that happened when trying to deliver an update via webhook
last_error_messagestringoptionalOptional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
last_synchronization_error_datenumberoptionalOptional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters
max_connectionsnumberoptionalOptional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
allowed_updatesstring[]optionalOptional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member, message_reaction, and message_reaction_count.

import

types.ts
import type { WebhookInfo } from "@yaebal/types";

used by

methods