@@ -365,7 +365,7 @@ def send_voice(self, chat_id, voice, duration=None, reply_to_message_id=None, re
365365 apihelper .send_voice (self .token , chat_id , voice , duration , reply_to_message_id , reply_markup ,
366366 disable_notification , timeout ))
367367
368- def send_document (self , chat_id , data , reply_to_message_id = None , reply_markup = None , disable_notification = None , timeout = None ):
368+ def send_document (self , chat_id , data , reply_to_message_id = None , caption = None , reply_markup = None , disable_notification = None , timeout = None ):
369369 """
370370 Use this method to send general files.
371371 :param chat_id:
@@ -376,7 +376,7 @@ def send_document(self, chat_id, data, reply_to_message_id=None, reply_markup=No
376376 """
377377 return types .Message .de_json (
378378 apihelper .send_data (self .token , chat_id , data , 'document' , reply_to_message_id , reply_markup ,
379- disable_notification , timeout ))
379+ disable_notification , timeout , caption = caption ))
380380
381381 def send_sticker (self , chat_id , data , reply_to_message_id = None , reply_markup = None , disable_notification = None , timeout = None ):
382382 """
0 commit comments