account.VerifyPhone

class pyrogram.raw.functions.account.VerifyPhone

Verify a phone number for telegram passport.

Details:
  • Layer: 223

  • ID: 4DD3A7F6

Parameters:
  • phone_number (str) – Phone number

  • phone_code_hash (str) – Phone code hash received from the call to account.sendVerifyPhoneCode

  • phone_code (str) – Code received after the call to account.sendVerifyPhoneCode

Returns:

bool

TL Schema

account.verifyPhone#4dd3a7f6
phone_number:string
phone_code_hash:string
phone_code:string

= Bool

Parameter Tree

VerifyPhone
├── phone_numberstring
├── phone_code_hashstring
└── phone_codestring

Example

await app.invoke(
    VerifyPhone(
        phone_number="text",
        phone_code_hash="text",
        phone_code="text",
    )
)