auth.SentCode
- class pyrogram.raw.types.auth.SentCode
Contains info about a sent verification code.
Constructor of
SentCode.- Details:
Layer:
223ID:
5E002502
- Parameters:
type (
auth.SentCodeType) – Phone code typephone_code_hash (
str) – Phone code hash, to be stored and later re-used with auth.signInnext_type (
auth.CodeType, optional) – Phone code type that will be sent next, if the phone code is not received within timeout seconds: to send it use auth.resendCodetimeout (
int32-bit, optional) – Timeout for reception of the phone code
- Functions:
This object can be returned by 7 functions.
Send the verification code for login
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.
Reset the login email ».
{schema}
Verify a new phone number to associate to the current account
Send confirmation code to cancel account deletion, for more info click here »
Send the verification phone code for telegram passport.
TL Schema
auth.sentCode#5e002502
flags:#
type:auth.SentCodeType
phone_code_hash:string
next_type:flags.1?auth.CodeType
timeout:flags.2?int
= auth.SentCode
Parameter Tree
auth.SentCodeTypeauth.SentCodeTypeAppintauth.SentCodeTypeSmsintauth.SentCodeTypeCallintstringstringinttrue (optional)true (optional)stringintint (optional)int (optional)true (optional)true (optional)stringintbytes (optional)long (optional)bytes (optional)string (optional)int (optional)intauth.SentCodeTypeSmsWordstring (optional)string (optional)stringauth.CodeType (optional)auth.CodeTypeSmsauth.CodeTypeCallauth.CodeTypeFlashCallauth.CodeTypeMissedCallauth.CodeTypeFragmentSmsint (optional)Example
SentCode(
type=SentCodeTypeApp(length=0),
phone_code_hash="text",
)