@@ -334,7 +334,7 @@ def send_photo(self, chat_id, photo, caption=None, reply_to_message_id=None, rep
334334 disable_notification ))
335335
336336 def send_audio (self , chat_id , audio , duration = None , performer = None , title = None , reply_to_message_id = None ,
337- reply_markup = None , disable_notification = None ):
337+ reply_markup = None , disable_notification = None , timeout = None ):
338338 """
339339 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.
340340 :param chat_id:Unique identifier for the message recipient
@@ -348,10 +348,10 @@ def send_audio(self, chat_id, audio, duration=None, performer=None, title=None,
348348 """
349349 return types .Message .de_json (
350350 apihelper .send_audio (self .token , chat_id , audio , duration , performer , title , reply_to_message_id ,
351- reply_markup , disable_notification ))
351+ reply_markup , disable_notification , timeout ))
352352
353353 def send_voice (self , chat_id , voice , duration = None , reply_to_message_id = None , reply_markup = None ,
354- disable_notification = None ):
354+ disable_notification = None , timeout = None ):
355355 """
356356 Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message.
357357 :param chat_id:Unique identifier for the message recipient.
@@ -363,9 +363,9 @@ def send_voice(self, chat_id, voice, duration=None, reply_to_message_id=None, re
363363 """
364364 return types .Message .de_json (
365365 apihelper .send_voice (self .token , chat_id , voice , duration , reply_to_message_id , reply_markup ,
366- disable_notification ))
366+ disable_notification , timeout ))
367367
368- def send_document (self , chat_id , data , reply_to_message_id = None , reply_markup = None , disable_notification = None ):
368+ def send_document (self , chat_id , data , reply_to_message_id = None , reply_markup = None , disable_notification = None , timeout = None ):
369369 """
370370 Use this method to send general files.
371371 :param chat_id:
@@ -376,9 +376,9 @@ 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 ))
379+ disable_notification , timeout ))
380380
381- def send_sticker (self , chat_id , data , reply_to_message_id = None , reply_markup = None , disable_notification = None ):
381+ def send_sticker (self , chat_id , data , reply_to_message_id = None , reply_markup = None , disable_notification = None , timeout = None ):
382382 """
383383 Use this method to send .webp stickers.
384384 :param chat_id:
@@ -389,10 +389,10 @@ def send_sticker(self, chat_id, data, reply_to_message_id=None, reply_markup=Non
389389 """
390390 return types .Message .de_json (
391391 apihelper .send_data (self .token , chat_id , data , 'sticker' , reply_to_message_id , reply_markup ,
392- disable_notification ))
392+ disable_notification , timeout ))
393393
394394 def send_video (self , chat_id , data , duration = None , caption = None , reply_to_message_id = None , reply_markup = None ,
395- disable_notification = None ):
395+ disable_notification = None , timeout = None ):
396396 """
397397 Use this method to send video files, Telegram clients support mp4 videos.
398398 :param chat_id: Integer : Unique identifier for the message recipient — User or GroupChat id
@@ -405,7 +405,7 @@ def send_video(self, chat_id, data, duration=None, caption=None, reply_to_messag
405405 """
406406 return types .Message .de_json (
407407 apihelper .send_video (self .token , chat_id , data , duration , caption , reply_to_message_id , reply_markup ,
408- disable_notification ))
408+ disable_notification , timeout ))
409409
410410 def send_location (self , chat_id , latitude , longitude , reply_to_message_id = None , reply_markup = None ,
411411 disable_notification = None ):
0 commit comments