Skip to content

Commit

Permalink
Merge pull request #420 from chirizxc/patch-3
Browse files Browse the repository at this point in the history
#416 fix: add voice for get_media_id
  • Loading branch information
Tishka17 authored Aug 12, 2024
2 parents a37ae78 + 2924e66 commit 5010435
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aiogram_dialog/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5010435

Please sign in to comment.