account.SendVerifyPhoneCode
- class pyrogram.raw.functions.account.SendVerifyPhoneCode
Send the verification phone code for telegram passport.
- Details:
Layer:
223ID:
A5A356F9
- Parameters:
phone_number (
str) – The phone number to verifysettings (
CodeSettings) – Phone code settings
- Returns:
TL Schema
account.sendVerifyPhoneCode#a5a356f9
phone_number:string
settings:CodeSettings
= auth.SentCode
Parameter Tree
SendVerifyPhoneCode
├── phone_number →
string└── settings →
CodeSettings└──
CodeSettings├── allow_flashcall →
true (optional)├── current_number →
true (optional)├── allow_app_hash →
true (optional)├── allow_missed_call →
true (optional)├── allow_firebase →
true (optional)├── unknown_number →
true (optional)├── logout_tokens →
Vector < bytes > (optional)├── token →
string (optional)└── app_sandbox →
Bool (optional)Example
await app.invoke(
SendVerifyPhoneCode(
phone_number="text",
settings=CodeSettings(
allow_flashcall=None,
current_number=None,
allow_app_hash=None,
allow_missed_call=None,
allow_firebase=None,
unknown_number=None,
logout_tokens=None,
token=None,
app_sandbox=None
),
)
)