account.DeleteAccount
- class pyrogram.raw.functions.account.DeleteAccount
Delete the user’s account from the telegram servers.
- Details:
Layer:
223ID:
A2C0CF74
- Parameters:
reason (
str) – Why is the account being deleted, can be emptypassword (
InputCheckPasswordSRP, optional) – 2FA password: this field can be omitted even for accounts with 2FA enabled: in this case account account deletion will be delayed by 7 days as specified in the docs »
- Returns:
bool
TL Schema
account.deleteAccount#a2c0cf74
flags:#
reason:string
password:flags.0?InputCheckPasswordSRP
= Bool
Parameter Tree
DeleteAccount
├── reason →
string└── password →
InputCheckPasswordSRP (optional)├── srp_id →
long├── A →
bytes└── M1 →
bytesExample
await app.invoke(
DeleteAccount(
reason="text",
password=InputCheckPasswordEmpty(),
)
)