From 73dd73eb24b0cf98bc83472ed0997da1dd5e700a Mon Sep 17 00:00:00 2001 From: udf Date: Sun, 26 Aug 2018 23:28:26 +0200 Subject: [PATCH] h --- stdplugins/sp_h.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 stdplugins/sp_h.py diff --git a/stdplugins/sp_h.py b/stdplugins/sp_h.py new file mode 100644 index 0000000..934c94b --- /dev/null +++ b/stdplugins/sp_h.py @@ -0,0 +1,8 @@ +from telethon import events +from telethon.tl import types + +@borg.on(events.NewMessage(pattern=r"^h$", outgoing=False)) +async def on_h(event): + await borg.send_message(await event.get_input_chat(), '', + file=types.InputDocument(421851232546587302, -6059663575626880183), + reply_to=event.message.id)