From 3457db917f982c9d13e018498e51cdccdccc65e9 Mon Sep 17 00:00:00 2001 From: Dan Elkouby Date: Fri, 18 May 2018 16:48:44 +0000 Subject: [PATCH] fix --- stdplugins/all.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stdplugins/all.py b/stdplugins/all.py index fbf6775..65f9528 100644 --- a/stdplugins/all.py +++ b/stdplugins/all.py @@ -4,8 +4,10 @@ from telethon import events -@borg.on(events.NewMessage(pattern=r".all", outgoing=True)) +@borg.on(events.NewMessage(pattern=r"\.all", outgoing=True)) async def _(event): + if event.forward: + return await event.delete() mentions = "@all" async for x in borg.iter_participants(await event.input_chat, 100):