From a57f9cfc70280de49dcff1c62f1ce8fd317c40ed Mon Sep 17 00:00:00 2001 From: Gabben <43146729+gabbhack@users.noreply.github.com> Date: Sat, 9 Oct 2021 20:22:06 +0300 Subject: [PATCH] Fixed send_copy: added caption to send_voice (#722) --- aiogram/types/message.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aiogram/types/message.py b/aiogram/types/message.py index 8c5d5d3a..403ef954 100644 --- a/aiogram/types/message.py +++ b/aiogram/types/message.py @@ -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(