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)