Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting messages #278

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vladimirzenin
Copy link

No description provided.

@@ -635,6 +635,38 @@ def delete_chat(self) -> None:

self.present_info("Chat was deleted")

@bind(chat_handler, ["dm"])
def delete_messages_in_chat(self) -> None:
"""Delete last 100 user messages in the group"""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this deserves an own key binding. If it does it should probably accept a count and default to deleting one message.

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.

2 participants