Layer 220
AccountGetTmpPassword
Get temporary payment password
method
Users
account.getTmpPassword#449e0b51 password:InputCheckPasswordSRP period:int = account.TmpPassword;
Parameters
| Name | Type | Description |
|---|---|---|
| Password | InputCheckPasswordSRP | SRP password parameters |
| Period | int | Time during which the temporary password will be valid, in seconds; should be between 60 and 86400 |
Returns
account.TmpPasswordPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PASSWORD_HASH_INVALID | The provided password hash is invalid. |
| 400 | SRP_A_INVALID | The specified input Check Password SRP. A value is invalid. |
| 400 | TMP_PASSWORD_DISABLED | The temporary password is disabled. |
Gogram Example
// AccountGetTmpPassword - positional arguments result, err := client.AccountGetTmpPassword(&tg.InputCheckPasswordSrp{}, 0) if err != nil { // handle error } // result is *tg.AccountTmpPassword