◐ Shell
reader mode source ↗
Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Add method to set the History TTL#681

Open
ColinShark wants to merge 6 commits into
pyrogram:masterfrom
ColinShark:history-ttl
Open

Add method to set the History TTL#681
ColinShark wants to merge 6 commits into
pyrogram:masterfrom
ColinShark:history-ttl

Conversation

@ColinShark

Copy link
Copy Markdown
Contributor

app.set_history_ttl(chat_id, period) to automatically delete messages after either a day (86400) or a week (604800). 0 to disable.

`app.set_history_ttl(chat_id, period)` to automatically delete messages
after either a day or a week. 0 to disable.
@delivrance

Copy link
Copy Markdown
Member

I'm also not fully convinced about keeping "TTL" in the convenience API, but at the moment I can't think of a better and short enough replacement.

ColinShark and others added 5 commits May 14, 2021 17:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants