libtd-ktx / kotlinx.telegram.coroutines / createTemporaryPassword
createTemporaryPassword
suspend fun
TelegramFlow
.createTemporaryPassword(password:
String
?, validFor:
Int
):
TemporaryPasswordState
Suspend function, which creates a new temporary password for processing payments.
Parameters
password
- Persistent user password.
validFor
- Time during which the temporary password will be valid, in seconds; should be
between 60 and 86400.
Return TemporaryPasswordState Returns information about the availability of a temporary password, which can be used for payments.