diff --git a/stdplugins/sp_bar.py b/stdplugins/sp_bar.py new file mode 100644 index 0000000..18b698c --- /dev/null +++ b/stdplugins/sp_bar.py @@ -0,0 +1,10 @@ +import asyncio +from telethon import events +from telethon.tl import types +import re + +@borg.on(events.NewMessage(pattern=re.compile(r"^bar$"), chats=1040270887)) +async def on_bar(event): + if event.from_id == 151462131: + return + await event.reply("foo")