From 5e5fe5876a5412fc2976e43055b5d582d645e559 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Thu, 4 Apr 2019 10:10:54 +0200 Subject: [PATCH] Fix mimetype for mp3 files It was incorrectly audio/mp3, when audio/mpeg is the correct one. This was causing sending mp3 voice notes to not work. --- telethon/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/utils.py b/telethon/utils.py index 26b48c59..9b485b38 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -43,7 +43,7 @@ mimetypes.add_type('video/mp4', '.mp4') mimetypes.add_type('video/quicktime', '.mov') mimetypes.add_type('video/avi', '.avi') -mimetypes.add_type('audio/mp3', '.mp3') +mimetypes.add_type('audio/mpeg', '.mp3') mimetypes.add_type('audio/m4a', '.m4a') mimetypes.add_type('audio/aac', '.aac') mimetypes.add_type('audio/ogg', '.ogg')