account.ChangePhone
- class pyrogram.raw.functions.account.ChangePhone
Change the phone number of the current account
- Details:
Layer:
223ID:
70C32EDB
- Parameters:
phone_number (
str) – New phone numberphone_code_hash (
str) – Phone code hash received when calling account.sendChangePhoneCodephone_code (
str) – Phone code received when calling account.sendChangePhoneCode
- Returns:
TL Schema
account.changePhone#70c32edb
phone_number:string
phone_code_hash:string
phone_code:string
= User
Parameter Tree
ChangePhone
├── phone_number →
string├── phone_code_hash →
string└── phone_code →
stringExample
await app.invoke(
ChangePhone(
phone_number="text",
phone_code_hash="text",
phone_code="text",
)
)