auth.Authorization#
- class pyrogram.raw.types.auth.Authorization#
Contains user authorization info.
Constructor of
Authorization
.- Details:
Layer:
158
ID:
2EA2C0D4
- Parameters:
user (
User
) – Info on authorized user.setup_password_required (
bool
, optional) – Suggests the user to set up a 2-step verification password to be able to log in again.otherwise_relogin_days (
int
32-bit
, optional) – Iff setup_password_required is set and the user declines to set a 2-step verification password, they will be able to log into their account via SMS again only after this many days pass.tmp_sessions (
int
32-bit
, optional) – Temporary passport sessions.future_auth_token (
bytes
, optional) – A future auth token.
- Functions:
This object can be returned by 7 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.