Skip to main content

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

NameTypeRequiredDescription
PendingUpdatesCountintyesNumber of pending updates
MessagestringyesError message, if present

Returns

bool

Possible errors

CodeTypeDescription
400USER_BOT_REQUIREDThis method can only be called by a bot.

References