diff --git a/files/internals/functions b/files/internals/functions index c193e77..ba8c132 100644 --- a/files/internals/functions +++ b/files/internals/functions @@ -1675,7 +1675,7 @@ genalert() { if [ "$telegram_alert" == "1" ]; then if [ "$type" == "file" ] && [ -f "$file" ]; then - telegram_response=$(curl -F "document=@$file" -F "caption=$telegram_file_caption" "https://api.telegram.org/$telegram_bot_token/sendDocument?chat_id=$telegram_channel_id" | grep -oP '^{"ok":true') + telegram_response=$(curl -F "document=@$file" -F "caption=$telegram_file_caption" "https://api.telegram.org/bot$telegram_bot_token/sendDocument?chat_id=$telegram_channel_id" | grep -oP '^{"ok":true') if [ "$telegram_response" ]; then eout "{alert} scan report sent to telegram channel: $telegram_channel_id" 0 else