Fixed send_copy: added caption to send_voice

This commit is contained in:
Gabben 2021-10-07 18:42:01 +05:00
parent 100848b889
commit c038e570d1

View file

@ -2899,7 +2899,9 @@ class Message(base.TelegramObject):
video_note=self.video_note.file_id, **kwargs
)
elif self.voice:
return await self.bot.send_voice(voice=self.voice.file_id, **kwargs)
return await self.bot.send_voice(
voice=self.voice.file_id, caption=text, **kwargs
)
elif self.contact:
kwargs.pop("parse_mode")
return await self.bot.send_contact(