Skip to content
  1. MTKruto/
  2. Walkthrough/
  3. Account Auto-Deletion
  1. Getting the Auto-Deletion Period
  2. Setting the Auto-Deletion Period
Guides

Account Auto-DeletionUSER-ONLY

User Walkthrough · 14 of 18

User clients can control when an inactive account is automatically deleted.

Getting the Auto-Deletion Period

Use getAccountTtl to get the period in days.

const dayCount = await client.getAccountTtl();

console.log(dayCount);

Setting the Auto-Deletion Period

Use setAccountTtl with the period in days.

await client.setAccountTtl(365);
PreviousUsernamesNextChat Recommendations
© 2023-2026 MTKruto
TelegramGitHub