auth.LoginTokenSuccess

class pyrogram.raw.types.auth.LoginTokenSuccess

Login via token (QR code) succeeded!

Constructor of LoginToken.

Details:
  • Layer: 223

  • ID: 390D5C5E

Parameters:

authorization (auth.Authorization) – Authorization info

Functions:

This object can be returned by 2 functions.

auth.ExportLoginToken

Generate a login token, for login via QR code.

auth.ImportLoginToken

Login using a redirected login token, generated in case of DC mismatch during QR code login.

TL Schema

auth.loginTokenSuccess#390d5c5e
authorization:auth.Authorization

= auth.LoginToken

Parameter Tree

LoginTokenSuccess
└── authorizationauth.Authorization
│ ├── setup_password_requiredtrue (optional)
│ ├── otherwise_relogin_daysint (optional)
│ ├── tmp_sessionsint (optional)
│ ├── future_auth_tokenbytes (optional)
│ └── userUser
│ ├── UserEmpty
│ │ └── idlong
│ └── User
│ ├── is_selftrue (optional)
│ ├── contacttrue (optional)
│ ├── mutual_contacttrue (optional)
│ ├── deletedtrue (optional)
│ ├── bottrue (optional)
│ ├── bot_chat_historytrue (optional)
│ ├── bot_nochatstrue (optional)
│ ├── verifiedtrue (optional)
│ ├── restrictedtrue (optional)
│ ├── mintrue (optional)
│ ├── bot_inline_geotrue (optional)
│ ├── supporttrue (optional)
│ ├── scamtrue (optional)
│ ├── apply_min_phototrue (optional)
│ ├── faketrue (optional)
│ ├── bot_attach_menutrue (optional)
│ ├── premiumtrue (optional)
│ ├── attach_menu_enabledtrue (optional)
│ ├── bot_can_edittrue (optional)
│ ├── close_friendtrue (optional)
│ ├── stories_hiddentrue (optional)
│ ├── stories_unavailabletrue (optional)
│ ├── contact_require_premiumtrue (optional)
│ ├── bot_businesstrue (optional)
│ ├── bot_has_main_apptrue (optional)
│ ├── bot_forum_viewtrue (optional)
│ ├── bot_forum_can_manage_topicstrue (optional)
│ ├── idlong
│ ├── access_hashlong (optional)
│ ├── first_namestring (optional)
│ ├── last_namestring (optional)
│ ├── usernamestring (optional)
│ ├── phonestring (optional)
│ ├── photoUserProfilePhoto (optional)
│ │ ├── UserProfilePhotoEmpty
│ │ └── UserProfilePhoto
│ ├── statusUserStatus (optional)
│ │ ├── UserStatusEmpty
│ │ ├── UserStatusOnline
│ │ ├── UserStatusOffline
│ │ ├── UserStatusRecently
│ │ ├── UserStatusLastWeek
│ │ └── UserStatusLastMonth
│ ├── bot_info_versionint (optional)
│ ├── restriction_reasonVector < RestrictionReason > (optional)
│ │ └── RestrictionReason
│ ├── bot_inline_placeholderstring (optional)
│ ├── lang_codestring (optional)
│ ├── emoji_statusEmojiStatus (optional)
│ │ ├── EmojiStatusEmpty
│ │ ├── EmojiStatus
│ │ ├── EmojiStatusCollectible
│ │ └── InputEmojiStatusCollectible
│ ├── usernamesVector < Username > (optional)
│ │ └── Username
│ ├── stories_max_idRecentStory (optional)
│ │ └── RecentStory
│ ├── colorPeerColor (optional)
│ │ ├── PeerColor
│ │ ├── PeerColorCollectible
│ │ └── InputPeerColorCollectible
│ ├── profile_colorPeerColor (optional)
│ │ ├── PeerColor
│ │ ├── PeerColorCollectible
│ │ └── InputPeerColorCollectible
│ ├── bot_active_usersint (optional)
│ ├── bot_verification_iconlong (optional)
│ └── send_paid_messages_starslong (optional)
└── terms_of_servicehelp.TermsOfService (optional)
├── popuptrue (optional)
├── idDataJSON
│ └── DataJSON
├── textstring
├── entitiesVector < MessageEntity >
│ ├── MessageEntityUnknown
│ ├── MessageEntityMention
│ ├── MessageEntityHashtag
│ ├── MessageEntityUrl
│ ├── MessageEntityEmail
│ ├── MessageEntityBold
│ ├── MessageEntityItalic
│ ├── MessageEntityCode
│ ├── MessageEntityPre
│ ├── MessageEntityTextUrl
│ ├── MessageEntityPhone
│ ├── MessageEntityCashtag
│ ├── MessageEntityStrike
│ ├── MessageEntityBankCard
│ ├── MessageEntitySpoiler
└── min_age_confirmint (optional)

Example

LoginTokenSuccess(
    authorization=Authorization(user=UserEmpty(id=0)),
)