mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed send_copy: added caption to send_voice (#722)
This commit is contained in:
parent
100848b889
commit
a57f9cfc70
1 changed files with 3 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue