auth.SignUp

class pyrogram.raw.functions.auth.SignUp

Registers a validated phone number in the system.

Details:
  • Layer: 223

  • ID: AAC7B717

Parameters:
  • phone_number (str) – Phone number in the international format

  • phone_code_hash (str) – SMS-message ID

  • first_name (str) – New user first name

  • last_name (str) – New user last name

  • no_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:

auth.Authorization

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_notificationstrue (optional)
├── phone_numberstring
├── phone_code_hashstring
├── first_namestring
└── last_namestring

Example

await app.invoke(
    SignUp(
        no_joined_notifications=None,
        phone_number="text",
        phone_code_hash="text",
        first_name="text",
        last_name="text",
    )
)