api.setBotUpdatesStatus()
Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only
Parameters
SetBotUpdatesStatusParams:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
pendingUpdateCount | number | The number of pending updates |
errorMessage | string | The last error message |
Returns
ApiResponse interface:interface ApiResponse {
_: 'setBotUpdatesStatus' | 'error'
airgram: Airgram
request: {
method: 'setBotUpdatesStatus'
params: SetBotUpdatesStatusParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}