Skip to main content

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

NameTypeRequiredDescription
PasswordInputCheckPasswordSRPClassyesThe password (see SRP)

Returns

*AccountPasswordSettings

Possible errors

CodeTypeDescription
400PASSWORD_HASH_INVALIDThe provided password hash is invalid.

References