Skip to content

Add method to set the History TTL#2

Merged
omg-xtao merged 8 commits intoTeamPGM:pgmfrom
AkkiaS7:pgm
Jan 13, 2024
Merged

Add method to set the History TTL#2
omg-xtao merged 8 commits intoTeamPGM:pgmfrom
AkkiaS7:pgm

Conversation

@AkkiaS7
Copy link
Copy Markdown

@AkkiaS7 AkkiaS7 commented Jan 13, 2024

  • Support set history ttl
  • Add MessageServiceType enums.MessageServiceType.CHAT_TTL_CHANGED

ColinShark and others added 8 commits May 13, 2021 23:12
`app.set_history_ttl(chat_id, period)` to automatically delete messages
after either a day or a week. 0 to disable.
`set_history_ttl` -> `set_chat_history_ttl` in all occurences
(Still the original name ha!)
# Conflicts:
#	pyrogram/methods/chats/__init__.py
#	pyrogram/types/messages_and_media/message.py
#	pyrogram/types/user_and_chats/chat.py
# Conflicts:
#	pyrogram/types/messages_and_media/message.py
@AkkiaS7 AkkiaS7 marked this pull request as ready for review January 13, 2024 10:03
@AkkiaS7
Copy link
Copy Markdown
Author

AkkiaS7 commented Jan 13, 2024

upstream pyrogram#1384

@omg-xtao omg-xtao merged commit aecdf4c into TeamPGM:pgm Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants