account.getTmpPassword #

Get temporary payment password

Layer 223

account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword;
---functions---
account.getTmpPassword#449e0b51 password:InputCheckPasswordSRP period:int = account.TmpPassword;

Parameters #

NameTypeDescription
passwordInputCheckPasswordSRPSRP password parameters
periodintTime during which the temporary password will be valid, in seconds; should be between 60 and 86400

Result #

account.TmpPassword

Only users can use this method #

Possible errors #

CodeTypeDescription
400PASSWORD_HASH_INVALIDThe provided password hash is invalid.
400SRP_A_INVALIDThe specified inputCheckPasswordSRP.A value is invalid.
400TMP_PASSWORD_DISABLEDThe temporary password is disabled.