Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SpEcHiDe committed Feb 9, 2024
1 parent 6230110 commit 1d3dc25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrogram/methods/messages/send_audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ async def progress(current, total):
else:
media = utils.get_input_media_from_file_id(audio, FileType.AUDIO)
else:
mime_type = self.guess_mime_type(audio.name) or "audio/mpeg"
mime_type = self.guess_mime_type(file_name or audio.name) or "audio/mpeg"
if mime_type == "audio/ogg":
mime_type = "audio/opus"
thumb = await self.save_file(thumb)
Expand Down

0 comments on commit 1d3dc25

Please sign in to comment.