help.setBotUpdatesStatus
Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only
func (c *Client) HelpSetBotUpdatesStatus(ctx context.Context, request *HelpSetBotUpdatesStatusRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.HelpSetBotUpdatesStatus(ctx, &tg.HelpSetBotUpdatesStatusRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
PendingUpdatesCount | int | yes | Number of pending updates |
Message | string | yes | Error message, if present |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
References
- Official documentation
- Generated Go reference
- TL definition:
help.setBotUpdatesStatus#ec22cfcd