auth.LoginTokenSuccess

class pyrogram.raw.types.auth.LoginTokenSuccess

Login via token (QR code) succeeded!

Constructor of LoginToken.

Details:
  • Layer: 227

  • 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
└── authorization → auth.Authorization
│ ├── setup_password_required → true (optional)
│ ├── otherwise_relogin_days → int (optional)
│ ├── tmp_sessions → int (optional)
│ ├── future_auth_token → bytes (optional)
│ └── user → User
│ ├── UserEmpty
│ │ └── id → long
│ └── User
│ ├── is_self → true (optional)
│ ├── contact → true (optional)
│ ├── mutual_contact → true (optional)
│ ├── deleted → true (optional)
│ ├── bot → true (optional)
│ ├── bot_chat_history → true (optional)
│ ├── bot_nochats → true (optional)
│ ├── verified → true (optional)
│ ├── restricted → true (optional)
│ ├── min → true (optional)
│ ├── bot_inline_geo → true (optional)
│ ├── support → true (optional)
│ ├── scam → true (optional)
│ ├── apply_min_photo → true (optional)
│ ├── fake → true (optional)
│ ├── bot_attach_menu → true (optional)
│ ├── premium → true (optional)
│ ├── attach_menu_enabled → true (optional)
│ ├── bot_can_edit → true (optional)
│ ├── close_friend → true (optional)
│ ├── stories_hidden → true (optional)
│ ├── stories_unavailable → true (optional)
│ ├── contact_require_premium → true (optional)
│ ├── bot_business → true (optional)
│ ├── bot_has_main_app → true (optional)
│ ├── bot_forum_view → true (optional)
│ ├── bot_forum_can_manage_topics → true (optional)
│ ├── bot_can_manage_bots → true (optional)
│ ├── bot_guestchat → true (optional)
│ ├── bot_guard → true (optional)
│ ├── id → long
│ ├── access_hash → long (optional)
│ ├── first_name → string (optional)
│ ├── last_name → string (optional)
│ ├── username → string (optional)
│ ├── phone → string (optional)
│ ├── photo → UserProfilePhoto (optional)
│ │ ├── UserProfilePhotoEmpty
│ │ └── UserProfilePhoto
│ ├── status → UserStatus (optional)
│ │ ├── UserStatusEmpty
│ │ ├── UserStatusOnline
│ │ ├── UserStatusOffline
│ │ ├── UserStatusRecently
│ │ ├── UserStatusLastWeek
│ │ └── UserStatusLastMonth
│ ├── bot_info_version → int (optional)
│ ├── restriction_reason → Vector < RestrictionReason > (optional)
│ │ └── RestrictionReason
│ ├── bot_inline_placeholder → string (optional)
│ ├── lang_code → string (optional)
│ ├── emoji_status → EmojiStatus (optional)
│ │ ├── EmojiStatusEmpty
│ │ ├── EmojiStatus
│ │ ├── EmojiStatusCollectible
│ │ └── InputEmojiStatusCollectible
│ ├── usernames → Vector < Username > (optional)
│ │ └── Username
│ ├── stories_max_id → RecentStory (optional)
│ │ └── RecentStory
│ ├── color → PeerColor (optional)
│ │ ├── PeerColor
│ │ ├── PeerColorCollectible
│ │ └── InputPeerColorCollectible
│ ├── profile_color → PeerColor (optional)
│ │ ├── PeerColor
│ │ ├── PeerColorCollectible
│ │ └── InputPeerColorCollectible
│ ├── bot_active_users → int (optional)
│ ├── bot_verification_icon → long (optional)
│ └── send_paid_messages_stars → long (optional)
└── terms_of_service → help.TermsOfService (optional)
├── popup → true (optional)
├── id → DataJSON
│ └── DataJSON
├── text → string
├── entities → Vector < MessageEntity >
│ ├── MessageEntityUnknown
│ ├── MessageEntityMention
│ ├── MessageEntityHashtag
│ ├── MessageEntityUrl
│ ├── MessageEntityEmail
│ ├── MessageEntityBold
│ ├── MessageEntityItalic
│ ├── MessageEntityCode
│ ├── MessageEntityPre
│ ├── MessageEntityTextUrl
│ ├── MessageEntityPhone
│ ├── MessageEntityCashtag
│ ├── MessageEntityStrike
│ ├── MessageEntityBankCard
│ ├── MessageEntitySpoiler
└── min_age_confirm → int (optional)

Example

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