auth.SendCode
- class pyrogram.raw.functions.auth.SendCode
Send the verification code for login
- Details:
Layer:
223ID:
A677244F
- Parameters:
phone_number (
str) – Phone number in international formatapi_id (
int32-bit) – Application identifier (see App configuration)api_hash (
str) – Application secret hash (see App configuration)settings (
CodeSettings) – Settings for the code type to send
- Returns:
TL Schema
auth.sendCode#a677244f
phone_number:string
api_id:int
api_hash:string
settings:CodeSettings
= auth.SentCode
Parameter Tree
SendCode
├── phone_number →
string├── api_id →
int├── api_hash →
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(
SendCode(
phone_number="text",
api_id=0,
api_hash="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
),
)
)