mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 05:04:51 +00:00
Default to audio/mpeg mime type when sending audios
This commit is contained in:
parent
fadecb1061
commit
9986b707ae
1 changed files with 1 additions and 1 deletions
|
|
@ -580,7 +580,7 @@ class Client:
|
|||
functions.messages.SendMedia(
|
||||
peer=self.resolve_peer(chat_id),
|
||||
media=types.InputMediaUploadedDocument(
|
||||
mime_type=mimetypes.types_map["." + audio.split(".")[-1]],
|
||||
mime_type=mimetypes.types_map.get("." + audio.split(".")[-1], "audio/mpeg"),
|
||||
file=self.save_file(audio),
|
||||
caption=caption,
|
||||
attributes=[
|
||||
|
|
|
|||
Loading…
Reference in a new issue