From c3ed26a1c7c3487d9c6173b507a1ee3c6f33bda4 Mon Sep 17 00:00:00 2001 From: Qwerty-Space Date: Sun, 26 Aug 2018 22:57:45 +0100 Subject: [PATCH] made smol --- stdplugins/sp_h.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stdplugins/sp_h.py b/stdplugins/sp_h.py index 934c94b..0bf1bb7 100644 --- a/stdplugins/sp_h.py +++ b/stdplugins/sp_h.py @@ -1,8 +1,6 @@ from telethon import events from telethon.tl import types -@borg.on(events.NewMessage(pattern=r"^h$", outgoing=False)) +@borg.on(events.NewMessage(pattern="^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) + await borg.reply(file="CAADAQADpgIAAna32gVJ62JcFcDnqwI")