This commit is contained in:
Dan Elkouby 2018-05-18 16:48:44 +00:00
parent 4d0198b060
commit 3457db917f
1 changed files with 3 additions and 1 deletions

View File

@ -4,8 +4,10 @@
from telethon import events 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): async def _(event):
if event.forward:
return
await event.delete() await event.delete()
mentions = "@all" mentions = "@all"
async for x in borg.iter_participants(await event.input_chat, 100): async for x in borg.iter_participants(await event.input_chat, 100):