From 126f61f00c4286408bb8e9f4afc98ed545575472 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Tue, 5 Jan 2021 22:33:44 +0100 Subject: [PATCH] modules: send_file add file type classes --- modules/sendMessage.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/sendMessage.sh b/modules/sendMessage.sh index b120023..f5ad2d1 100644 --- a/modules/sendMessage.sh +++ b/modules/sendMessage.sh @@ -227,28 +227,28 @@ upload_file(){ [ -z "${ext}" ] && ext="${file##*.}" case "${ext}" in - mp3|flac) + audio|mp3|flac) CUR_URL="${AUDIO_URL}" WHAT="audio" STATUS="upload_audio" ;; - png|jpg|jpeg|gif|pic) + photo|png|jpg|jpeg|gif|pic) CUR_URL="${PHO_URL}" WHAT="photo" STATUS="upload_photo" ;; - webp) + sticker|webp) CUR_URL="${STICKER_URL}" WHAT="sticker" STATUS="upload_photo" ;; - mp4) + video|mp4) CUR_URL="${VIDEO_URL}" WHAT="video" STATUS="upload_video" ;; - ogg) + voice|ogg) CUR_URL="${VOICE_URL}" WHAT="voice" STATUS="upload_audio"