auth.Authorization#
- class pyrogram.raw.types.auth.Authorization#
Telegram API type.
Constructor of
Authorization.- Details:
Layer:
224ID:
2EA2C0D4
- Parameters:
user (
User) – N/Asetup_password_required (
bool, optional) – N/Aotherwise_relogin_days (
int32-bit, optional) – N/Atmp_sessions (
int32-bit, optional) – N/Afuture_auth_token (
bytes, optional) – N/A
- Functions:
This object can be returned by 8 functions.
Registers a validated phone number in the system.
Signs in a user with a validated phone number.
Logs in a user using a key transmitted from his native data-center.
Login as a bot
Try logging to an account protected by a 2FA password.
Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery.
Login by importing an authorization token
Usable by ✅ Users ❌ Bots