TGDesk
Language, current: English

Home › Blog

A timer that erases new messages in one chat

Updated · TGDesk

Short answer (19 October 2026): Telegram's auto-delete timer belongs to one chat. The 23 February 2021 post says messages sent after you set it are erased for everyone in that chat, either 24 hours or 7 days after sending. Messages already in the history stay. A second phone number is a separate account, with its own chats.

What the 2021 post added

The post says people could already delete messages for everyone in a conversation, and that secret chats have had a self-destruct timer since 2013. From that day, an auto-delete timer could be turned on in any Telegram chat. The two durations it names are 24 hours and 7 days after sending.

The countdown in that post has two starts. In a secret chat it starts when the message is read. In the other chats it starts when the message is sent. The English post describes the Android path as ⋮, then Clear History, then a duration. It describes the iOS path as a long-press on a message, then Select, Clear Chat at the top left, and Enable Auto-Delete. The Russian edition of the same post, fetched the same day, names Очистить историю on Android, and on iOS Выбрать, Удалить чат, and Настроить автоудаление. Those lines are the 2021 post. The pages fetched on 19 October 2026 do not reprint today's menus.

In groups and channels, the post says only admins can enable or modify the timer. How groups and channels differ is in channels and groups.

One dialog in the API

messages.setHistoryTTL, layer 225 on 19 October 2026, takes one peer and a period in seconds: automatically delete all messages sent in the chat after this many seconds. The page says only users can call it. A caller who is not an admin gets CHAT_ADMIN_REQUIRED. An unchanged value gets CHAT_NOT_MODIFIED. A bad peer gets PEER_ID_INVALID. A period the server rejects gets TTL_PERIOD_INVALID. The method page does not print the list of allowed numbers.

TDLib's setChatMessageAutoDeleteTime, fetched the same day, changes the auto-delete time, and for secret chats the self-destruct time. In a basic group, a supergroup, or a channel it requires the change_info administrator right. The time cannot be changed in the chat with the current user, which the page calls Saved Messages, or in chat 777000, which the page calls Telegram. For a chat that is not secret, the value must be from 0 up to 365 * 86400 and divisible by 86400. 0 means messages are not deleted automatically. The page does not print a separate list of secret-chat intervals.

WhereWhat it says about the length
23 February 2021 post24 hours, or 7 days, after sending
TDLib, non-secret chats0 through 365 * 86400 seconds, in steps of 86400
messages.setHistoryTTLA period in seconds. Allowed values are not printed. TTL_PERIOD_INVALID if the server rejects it

24 hours is 86400 seconds, and 7 days is 7 times 86400. Both sit on that whole-day step. Saved Messages is the chat where this time cannot be changed: Saved Messages.

A default for new chats

messages.setDefaultHistoryTTL sets the default Time-To-Live of messages sent in new chats, in seconds. Only users can call it. An invalid period returns TTL_PERIOD_INVALID. TDLib's setDefaultMessageAutoDeleteTime uses the same bounds: 0 through 365 * 86400, divisible by 86400, and 0 means messages are not deleted automatically.

messageActionSetMessagesTTL is the service message that the Time-To-Live in this chat changed. period 0 means autodeletion was disabled. When auto_setting_from is set, the page says the change came from a participant's default TTL, for example a default of 1 week when someone writes to you for the first time. The service message goes out before your first message, with auto_setting_from set to your user id.

A second account keeps its own timer

The FAQ, fetched 19 October 2026, says each phone number is a separate account. You can create another account on a second number, and one Telegram app can stay logged into several accounts. The same page says you can log in on as many devices as you like, at the same time, with your main phone number, and cloud chats sync. Those devices share one account's cloud chats. The other number has its own dialogs, so messages.setHistoryTTL on this peer does not set the timer on the other number. How several logins sit on one PC is in several accounts on a PC.

A message waiting to go out later is a different clock. It sits in that chat's schedule queue: scheduled messages.

On 14 July 2026 Telegram added ephemeral messages in groups: a bot reply visible only to one person, such as a greeting, a private summary, or a menu. That post describes who can see the reply. It does not describe the auto-delete timer.

Blocking forwarding and saving in that same chat is a separate switch. The menu names and the API flag are in restrict saving content.

An inbox does not replace the timer

TGDesk is an independent desktop app for several accounts in one inbox. It is paid, with a free trial, and an unsigned Windows ZIP is available on the home page. It is not affiliated with Telegram. The auto-delete timer stays in Telegram, on the chat where it was set. In-chat translation, speech-to-text and image text are planned and not in the public Windows build.

Sources

Fetched 19 October 2026: Auto-delete announcement (23 February 2021), the same post in Russian, Ephemeral messages in groups (14 July 2026), FAQ, a new phone number, messages.setHistoryTTL, messages.setDefaultHistoryTTL, messageActionSetMessagesTTL, TDLib setChatMessageAutoDeleteTime, TDLib setDefaultMessageAutoDeleteTime.

FAQ

Does auto-delete clear messages already in the chat?

The 23 February 2021 post says auto-delete applies to messages sent after the timer is set. Earlier messages stay in the chat history.

Who can set the timer in a group or a channel?

That post says only admins can enable or modify the timer in groups and channels. messages.setHistoryTTL, fetched 19 October 2026, returns CHAT_ADMIN_REQUIRED when the caller is not an admin, and the page says only users can call the method. TDLib asks for the change_info administrator right in basic groups, supergroups, and channels.

Can the gap be a whole number of days other than 1 or 7?

The 2021 post names 24 hours and 7 days. TDLib's setChatMessageAutoDeleteTime, fetched 19 October 2026, says a non-secret chat must use a value from 0 up to 365 times 86400 seconds, divisible by 86400. 0 means messages are not deleted automatically. 24 hours is 86400 seconds, and 7 days is 7 times 86400. Those pages do not print the buttons in today's apps.

Does one timer cover every account I use?

messages.setHistoryTTL takes one peer, the dialog. The FAQ, fetched 19 October 2026, says each phone number is a separate account, and that one app can stay logged into several accounts. A second number has its own chats. Devices logged in with the same main number share that number's cloud chats.

Does TGDesk switch this timer off?

No. TGDesk is an independent paid desktop inbox for several accounts. An unsigned Windows ZIP is available on the home page. The timer is a Telegram setting on that chat.

Download for Windows (unsigned)

Free 3-day trial: open @tgdesk_app_bot and send /trial. Once per Telegram user, Personal-tier capability, 1 device.

Unsigned build. Windows SmartScreen can warn you: choose More info, then Run anyway. SHA256 · README. License: open t.me/tgdesk_app_bot and send /trial, /buy, or /mykey, then choose Activate in the app. The app checks the key at pay.tgdesk.app. Personal: 59.9 USDT or 3000 Stars, 90 days, 2 devices. Team: 143.76 USDT or 7200 Stars, 90 days, 5 devices. Team is a license for 5 devices, not shared agent seats, conversation assignment or a ticketing system.

Where to paste the key: Activate and bind this computer.

Optional waitlist

Join the waitlist

Optional. Only if we write to you about TGDesk.