From 319eb84c5abc20827802652f2391ee0a890a3ca9 Mon Sep 17 00:00:00 2001 From: Lonami Date: Wed, 26 Dec 2018 22:10:02 +0100 Subject: [PATCH] File reference --- stdplugins/snip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdplugins/snip.py b/stdplugins/snip.py index cf3f803..fceb4da 100644 --- a/stdplugins/snip.py +++ b/stdplugins/snip.py @@ -22,9 +22,9 @@ async def on_snip(event): else: snip = snips[name] if snip['type'] == TYPE_PHOTO: - media = types.InputPhoto(snip['id'], snip['hash']) + media = types.InputPhoto(snip['id'], snip['hash'], file_reference=b'') elif snip['type'] == TYPE_DOCUMENT: - media = types.InputDocument(snip['id'], snip['hash']) + media = types.InputDocument(snip['id'], snip['hash'], file_reference=b'') else: media = None