@@ -393,7 +393,7 @@ def send_photo(self, chat_id, photo, caption=None, reply_to_message_id=None, rep
393393 apihelper .send_photo (self .token , chat_id , photo , caption , reply_to_message_id , reply_markup ,
394394 disable_notification ))
395395
396- def send_audio (self , chat_id , audio , duration = None , performer = None , title = None , reply_to_message_id = None ,
396+ def send_audio (self , chat_id , audio , caption = None , duration = None , performer = None , title = None , reply_to_message_id = None ,
397397 reply_markup = None , disable_notification = None , timeout = None ):
398398 """
399399 Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .mp3 format.
@@ -407,10 +407,10 @@ def send_audio(self, chat_id, audio, duration=None, performer=None, title=None,
407407 :return: Message
408408 """
409409 return types .Message .de_json (
410- apihelper .send_audio (self .token , chat_id , audio , duration , performer , title , reply_to_message_id ,
410+ apihelper .send_audio (self .token , chat_id , audio , caption , duration , performer , title , reply_to_message_id ,
411411 reply_markup , disable_notification , timeout ))
412412
413- def send_voice (self , chat_id , voice , duration = None , reply_to_message_id = None , reply_markup = None ,
413+ def send_voice (self , chat_id , voice , caption = None , duration = None , reply_to_message_id = None , reply_markup = None ,
414414 disable_notification = None , timeout = None ):
415415 """
416416 Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message.
@@ -422,7 +422,7 @@ def send_voice(self, chat_id, voice, duration=None, reply_to_message_id=None, re
422422 :return: Message
423423 """
424424 return types .Message .de_json (
425- apihelper .send_voice (self .token , chat_id , voice , duration , reply_to_message_id , reply_markup ,
425+ apihelper .send_voice (self .token , chat_id , voice , caption , duration , reply_to_message_id , reply_markup ,
426426 disable_notification , timeout ))
427427
428428 def send_document (self , chat_id , data , reply_to_message_id = None , caption = None , reply_markup = None ,
0 commit comments