From 173e08015a828a3fa50062a9747392832a1f3708 Mon Sep 17 00:00:00 2001 From: Yan Date: Sat, 20 Jul 2019 10:26:36 +0300 Subject: [PATCH] Annotate file-like objects in docstring of send_document --- pyrogram/client/methods/messages/send_document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/methods/messages/send_document.py b/pyrogram/client/methods/messages/send_document.py index c4a7252b..be864b4b 100644 --- a/pyrogram/client/methods/messages/send_document.py +++ b/pyrogram/client/methods/messages/send_document.py @@ -56,7 +56,7 @@ class SendDocument(BaseClient): For your personal cloud (Saved Messages) you can simply use "me" or "self". For a contact that exists in your Telegram address book you can use his phone number (str). - document (``str``): + document (``str`` | file-like object): File to send. Pass a file_id as string to send a file that exists on the Telegram servers, pass an HTTP URL as a string for Telegram to get a file from the Internet, or