Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Merge branch 'delete-service-messages'
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatan1609 committed Sep 26, 2021
2 parents e544620 + 34fda4f commit e6eadb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions bot/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
show_admins_list = private & filters.command('admins')
refresh_admins_list = filters.regex('^refadm')
select_group__show_admins = filters.regex("^adm=")
service = filters.group & filters.service
7 changes: 7 additions & 0 deletions bot/handlers/deleteServiceMessages.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from pyrogram import Client
from ..filters import service


@Client.on_message(service)
async def delete_service_messages(_, message):
await message.delete()

0 comments on commit e6eadb2

Please sign in to comment.