Remove ~filters.forwarded in log_forwards and log_reports

This commit is contained in:
blank X 2021-03-10 16:46:43 +07:00
parent f62db3abf7
commit 8210944fc9
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ from .. import config, log_errors, app_user_ids, log_ring
logged = defaultdict(set)
lock = asyncio.Lock()
@Client.on_message(~filters.forwarded & ~filters.chat(config['config']['log_chat']) & filters.incoming & filters.forwarded & (filters.group | filters.channel))
@Client.on_message(~filters.chat(config['config']['log_chat']) & filters.incoming & filters.forwarded & (filters.group | filters.channel))
@log_errors
async def log_forwards(client, message):
if not config['config'].get('log_forwards'):

View File

@ -7,7 +7,7 @@ from .. import config, log_errors, log_ring
reported = defaultdict(set)
lock = asyncio.Lock()
@Client.on_message(~filters.forwarded & ~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']: