StaticGramBot API
Раздел

Получение обновлений

Getting updates

There are two mutually exclusive ways of receiving updates for your bot - the getUpdates method on one hand and webhooks on the other. Incoming updates are stored on the server until the bot receives them either way, but they will not be kept longer than 24 hours.

Regardless of which option you choose, you will receive JSON-serialized Update objects as a result.

Методы 4

МетодСтатусОписание
getUpdatesПоддерживаетсяUse this method to receive incoming updates using long polling ( wiki ).
setWebhookПоддерживаетсяUse this method to specify a URL and receive incoming updates via an outgoing webhook.
deleteWebhookПоддерживаетсяUse this method to remove webhook integration if you decide to switch back to getUpdates .
getWebhookInfoПоддерживаетсяUse this method to get current webhook status.

Типы 2

ТипОписание
UpdateThis object represents an incoming update.
WebhookInfoDescribes the current status of a webhook.

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