account.getPasswordSettings
Get private info associated to the password info (recovery email, telegram passport info & so on)
func (c *Client) AccountGetPasswordSettings(ctx context.Context, password InputCheckPasswordSRPClass) (*AccountPasswordSettings, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountGetPasswordSettings(ctx, password)
if err != nil {
return err
}
_ = res // *AccountPasswordSettings
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Password | InputCheckPasswordSRPClass | yes | The password (see SRP) |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PASSWORD_HASH_INVALID | The provided password hash is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.getPasswordSettings#9cd4eaf9