account.SetAccountTTL

class pyrogram.raw.functions.account.SetAccountTTL

Set account self-destruction period

Details:
  • Layer: 223

  • ID: 2442485E

Parameters:

ttl (AccountDaysTTL) – Time to live in days

Returns:

bool

TL Schema

account.setAccountTTL#2442485e
ttl:AccountDaysTTL

= Bool

Parameter Tree

SetAccountTTL
└── ttlAccountDaysTTL
└── AccountDaysTTL
└── daysint

Example

await app.invoke(
    SetAccountTTL(
        ttl=AccountDaysTTL(days=0),
    )
)