{{ message }}
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
Open
Conversation
`app.set_history_ttl(chat_id, period)` to automatically delete messages after either a day or a week. 0 to disable.
delivrance
suggested changes
May 14, 2021
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. |
Sorry, something went wrong.
`set_history_ttl` -> `set_chat_history_ttl` in all occurences
(Still the original name ha!)
delivrance
reviewed
May 15, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.
app.set_history_ttl(chat_id, period)to automatically delete messages after either a day (86400) or a week (604800).0to disable.