account.resetWebAuthorization
Log out an active web telegram login session
func (c *Client) AccountResetWebAuthorization(ctx context.Context, hash int64) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountResetWebAuthorization(ctx, hash)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Hash | int64 | yes | Session hash |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | HASH_INVALID | The provided hash is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.resetWebAuthorization#2d01b9ef