Handle #report

An example of a place that uses this is Telethon Chat
This commit is contained in:
blank X 2021-05-14 14:37:02 +07:00
parent 2830b3c9b9
commit 54b9f96be3
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ reported = defaultdict(set)
lock = asyncio.Lock()
force_ltr = '\u200E'
@Client.on_message(~filters.chat(config['config']['log_chat']) & filters.regex(r'(?:^|\s+)@admins?(?:$|\W+)|^[/!](?:report|admins?)(?:$|\W+)') & filters.group)
@Client.on_message(~filters.chat(config['config']['log_chat']) & filters.regex(r'(?:^|\s+)@admins?(?:$|\W+)|^[/!#](?:report|admins?)(?:$|\W+)') & filters.group)
@log_errors
async def log_reports(client, message):
if not config['config']['log_reports']: