auth.SentCodeSuccess

class pyrogram.raw.types.auth.SentCodeSuccess

The user successfully authorized using future auth tokens

Constructor of SentCode.

Details:
  • Layer: 223

  • ID: 2390FE44

Parameters:

authorization (auth.Authorization) – Authorization info

Functions:

This object can be returned by 7 functions.

auth.SendCode

Send the verification code for login

auth.ResendCode

Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info.

auth.ResetLoginEmail

Reset the login email ».

auth.CheckPaidAuth

{schema}

account.SendChangePhoneCode

Verify a new phone number to associate to the current account

account.SendConfirmPhoneCode

Send confirmation code to cancel account deletion, for more info click here »

account.SendVerifyPhoneCode

Send the verification phone code for telegram passport.

TL Schema

auth.sentCodeSuccess#2390fe44
authorization:auth.Authorization

= auth.SentCode

Parameter Tree

SentCodeSuccess
└── 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

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