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):