auth.SentCodeSuccess

class pyrogram.raw.types.auth.SentCodeSuccess

The user successfully authorized using future auth tokens

Constructor of SentCode.

Details:
  • Layer: 227

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

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