set_default_history_ttl()¶
- async Client.set_default_history_ttl()¶
Set the default Time-To-Live for messages.
Usable by Users Bots- Parameters:
period (
int) – The TTL period in seconds. Pass 0 to disable.- Returns:
bool– True on success.
Example
await app.set_default_history_ttl(86400) # 1 day