From 32acefa9911c13e313f5ed958040a665154148c4 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Mon, 23 Apr 2018 16:11:40 +0200 Subject: [PATCH] Respect original replies when sending a snip --- stdplugins/snip.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stdplugins/snip.py b/stdplugins/snip.py index 5c414ac..72dc830 100644 --- a/stdplugins/snip.py +++ b/stdplugins/snip.py @@ -29,8 +29,9 @@ async def on_snip(event): else: media = None - await borg.send_message( - await event.input_chat, snip['text'], file=media) + await borg.send_message(await event.input_chat, snip['text'], + file=media, + reply_to=event.message.reply_to_msg_id) await event.delete()