Handle #report
An example of a place that uses this is Telethon Chat
This commit is contained in:
parent
2830b3c9b9
commit
54b9f96be3
|
@ -8,7 +8,7 @@ reported = defaultdict(set)
|
||||||
lock = asyncio.Lock()
|
lock = asyncio.Lock()
|
||||||
force_ltr = '\u200E'
|
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
|
@log_errors
|
||||||
async def log_reports(client, message):
|
async def log_reports(client, message):
|
||||||
if not config['config']['log_reports']:
|
if not config['config']['log_reports']:
|
||||||
|
|
Loading…
Reference in New Issue