auth.SignUp
- class pyrogram.raw.functions.auth.SignUp
Registers a validated phone number in the system.
- Details:
Layer:
223ID:
AAC7B717
- Parameters:
phone_number (
str) – Phone number in the international formatphone_code_hash (
str) – SMS-message IDfirst_name (
str) – New user first namelast_name (
str) – New user last nameno_joined_notifications (
bool, optional) – If set, users on Telegram that have already added phone_number to their contacts will not receive signup notifications about this user.
- Returns:
TL Schema
auth.signUp#aac7b717
flags:#
no_joined_notifications:flags.0?true
phone_number:string
phone_code_hash:string
first_name:string
last_name:string
= auth.Authorization
Parameter Tree
SignUp
├── no_joined_notifications →
true (optional)├── phone_number →
string├── phone_code_hash →
string├── first_name →
string└── last_name →
stringExample
await app.invoke(
SignUp(
no_joined_notifications=None,
phone_number="text",
phone_code_hash="text",
first_name="text",
last_name="text",
)
)