From c038e570d1ce606f2cc39f9a2d6f78abd929ae6b Mon Sep 17 00:00:00 2001 From: Gabben <43146729+gabbhack@users.noreply.github.com> Date: Thu, 7 Oct 2021 18:42:01 +0500 Subject: [PATCH] Fixed send_copy: added caption to send_voice --- 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(