auth.SignIn
- class pyrogram.raw.functions.auth.SignIn
Signs in a user with a validated phone number.
- Details:
Layer:
223ID:
8D52A951
- Parameters:
phone_number (
str) – Phone number in the international formatphone_code_hash (
str) – SMS-message ID, obtained from auth.sendCodephone_code (
str, optional) – Valid numerical code from the SMS-messageemail_verification (
EmailVerification, optional) – Email verification code or token
- Returns:
TL Schema
auth.signIn#8d52a951
flags:#
phone_number:string
phone_code_hash:string
phone_code:flags.0?string
email_verification:flags.1?EmailVerification
= auth.Authorization
Parameter Tree
SignIn
├── phone_number →
string├── phone_code_hash →
string├── phone_code →
string (optional)└── email_verification →
EmailVerification (optional)│ └── code →
string│ └── token →
string└── token →
stringExample
await app.invoke(
SignIn(
phone_number="text",
phone_code_hash="text",
phone_code="text",
email_verification=EmailVerificationCode(code="text"),
)
)