account.updateStatus
Updates online user status.
func (c *Client) AccountUpdateStatus(ctx context.Context, offline bool) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountUpdateStatus(ctx, offline)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Offline | bool | yes | If (boolTrue) is transmitted, user status will change to (userStatusOffline). |
Returns
bool
References
- Official documentation
- Generated Go reference
- TL definition:
account.updateStatus#6628562c