Layer 220
HelpSetBotUpdatesStatus
Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only
method
Bots
help.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| PendingUpdatesCount | int | Number of pending updates |
| Message | string | Error message, if present |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
Gogram Example
// HelpSetBotUpdatesStatus - positional arguments result, err := client.HelpSetBotUpdatesStatus(0, "...") if err != nil { // handle error } // result is *tg.Bool