Queer European MD passionate about IT
Przeglądaj źródła

Document can be None if document_path is provided

Davte 4 lat temu
rodzic
commit
d6a4a1d69a
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      davtelepot/__init__.py
  2. 1 1
      davtelepot/bot.py

+ 1 - 1
davtelepot/__init__.py

@@ -11,7 +11,7 @@ __author__ = "Davide Testa"
 __email__ = "davide@davte.it"
 __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
 __license__ = "GNU General Public License v3.0"
-__version__ = "2.7.1"
+__version__ = "2.7.2"
 __maintainer__ = "Davide Testa"
 __contact__ = "t.me/davte"
 

+ 1 - 1
davtelepot/bot.py

@@ -1896,7 +1896,7 @@ class Bot(TelegramBot, ObjectWithDatabase, MultiLanguageObject):
                 )
         return sent_update
 
-    async def send_document(self, chat_id: Union[int, str], document,
+    async def send_document(self, chat_id: Union[int, str], document=None,
                             thumb=None,
                             caption: str = None,
                             parse_mode: str = None,