GetPasswordSettingsRequest
Only users can use this request. See code examples.
---functions--- account.getPasswordSettings#9cd4eaf9 password:InputCheckPasswordSRP = account.PasswordSettings
Returns
account.PasswordSettings |
This type can only be an instance of:
PasswordSettings |
Parameters
password | InputCheckPasswordSRP |
Known RPC errors
This request can cause 1 known error:
PasswordHashInvalidError | The password (and thus its hash value) you entered is invalid. |
You can import these from telethon.errors
.
Example
from telethon.sync import TelegramClient from telethon import functions, types with TelegramClient(name, api_id, api_hash) as client: result = client(functions.account.GetPasswordSettingsRequest( password=types.InputCheckPasswordSRP( srp_id=-12398745604826, A=b'arbitrary\x7f data \xfa here', M1=b'arbitrary\x7f data \xfa here' ) )) print(result.stringify())