From bf7cb68ccfb4a61ced8e6723806ce3499019f11e Mon Sep 17 00:00:00 2001 From: "Feltkamp.tv Multimedia Productions" Date: Fri, 27 May 2016 12:16:17 +0200 Subject: [PATCH] Update extensions in uploadFile for sendAudio I have added the audio/mpeg mimetype for the sendAudio function, because Telegram only accepts .mp3 files up to 50 mb. --- src/Telegram.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Telegram.php b/src/Telegram.php index fe66c68..53e6653 100644 --- a/src/Telegram.php +++ b/src/Telegram.php @@ -492,6 +492,7 @@ private function uploadFile($method, $data) 'image/bmp' => '.bmp', 'image/tiff' => '.tif', 'audio/ogg' => '.ogg', + 'audio/mpeg' => '.mp3', 'video/mp4' => '.mp4', 'image/webp' => '.webp' );