From 9c5b9abb937069b8b327b2a8b4dbb757a635043a Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Thu, 15 Oct 2020 10:40:41 +0200 Subject: [PATCH] Fix sending of documents in inline results --- telethon/tl/custom/inlinebuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/tl/custom/inlinebuilder.py b/telethon/tl/custom/inlinebuilder.py index f0338cf9..38c50311 100644 --- a/telethon/tl/custom/inlinebuilder.py +++ b/telethon/tl/custom/inlinebuilder.py @@ -204,7 +204,7 @@ class InlineBuilder: if voice_note: type = 'voice' else: - type = 'document' + type = 'file' try: fh = utils.get_input_document(file)