From 8aa4d9a26391f2990e4c1fd7efd218ece2f0f353 Mon Sep 17 00:00:00 2001 From: Mohammadreza Jafari <30555691+fristhon@users.noreply.github.com> Date: Wed, 16 Feb 2022 15:10:07 +0330 Subject: [PATCH] Make document title a required parameter (#3182) --- telethon/types/_custom/inlinebuilder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telethon/types/_custom/inlinebuilder.py b/telethon/types/_custom/inlinebuilder.py index 3fea2fc2..39b20a1c 100644 --- a/telethon/types/_custom/inlinebuilder.py +++ b/telethon/types/_custom/inlinebuilder.py @@ -226,7 +226,7 @@ class InlineBuilder: # noinspection PyIncorrectDocstring async def document( - self, file, title=None, *, description=None, type=None, + self, file, title, *, description=None, type=None, mime_type=None, attributes=None, force_document=False, voice_note=False, video_note=False, use_cache=True, id=None, text=None, parse_mode=(), link_preview=True, @@ -245,7 +245,7 @@ class InlineBuilder: Same as ``file`` for `client.send_file() `. - title (`str`, optional): + title (`str`): The title to be shown for this result. description (`str`, optional):