Раздел
Получение обновлений
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
| Тип | Описание |
|---|---|
Update | This object represents an incoming update. |
WebhookInfo | Describes the current status of a webhook. |