auth.sentCodeTypeEmailCode #

The code was sent via the previously configured login email »

Layer 223

auth.sentCodeTypeEmailCode#f450f59b flags:# apple_signin_allowed:flags.0?true google_signin_allowed:flags.1?true email_pattern:string length:int reset_available_period:flags.3?int reset_pending_date:flags.4?int = auth.SentCodeType;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
apple_signin_allowedflags.0?trueWhether authorization through Apple ID is allowed
google_signin_allowedflags.1?trueWhether authorization through Google ID is allowed
email_patternstringPattern of the email
lengthintLength of the sent verification code
reset_available_periodflags.3?intClients should wait for the specified amount of seconds before allowing the user to invoke auth.resetLoginEmail (will be 0 for Premium users).
reset_pending_dateflags.4?intAn email reset was already requested, and will occur at the specified date.

Type #

auth.SentCodeType

Pattern matching #

Some methods require the client to verify if the data obtained from an external source matches a certain pattern.

auth.resetLoginEmail #

Reset the login email ».

Telegram Premium #

Telegram Premium is an optional subscription service that unlocks additional exclusive client-side and API-side features, while helping support the development of the app.

User Authorization #

How to register a user's phone to start using the API.