From 2924e66952a99593584472843bd74bd5dab3bcbe Mon Sep 17 00:00:00 2001 From: chiri <109767616+chirizxc@users.noreply.github.com> Date: Mon, 12 Aug 2024 18:34:51 +0300 Subject: [PATCH] #416 fix: add voice for get_media_id --- src/aiogram_dialog/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aiogram_dialog/utils.py b/src/aiogram_dialog/utils.py index 64cdf2a2..b0453ed0 100644 --- a/src/aiogram_dialog/utils.py +++ b/src/aiogram_dialog/utils.py @@ -144,7 +144,8 @@ def get_media_id(message: Message) -> Optional[MediaId]: message.animation or message.document or (message.photo[-1] if message.photo else None) or - message.video + message.video or + message.voice ) if not media: return None