Airgram

Guides
/
/
Methods

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:

NameTypeDescription
pendingUpdateCountnumber The number of pending updates
errorMessagestring 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>
}