}
send_telegram_message() {
+ if ! command -v jq >/dev/null 2>&1; then
+ echo_timestamped "Error: jq not found in PATH"
+ exit 1
+ fi
+ if ! command -v curl >/dev/null 2>&1; then
+ echo_timestamped "Error: curl not found, cannot send telegram message"
+ return 1
+ fi
+
if [ -z "${FREQTRADE_CONFIG_JSON:-}" ]; then
FREQTRADE_CONFIG_JSON=$(jsonc_to_json "$FREQTRADE_CONFIG" 2>/dev/null || echo "")
fi
return 0
fi
- if ! command -v curl >/dev/null 2>&1; then
- echo_timestamped "Error: curl not found, cannot send telegram message"
- return 1
- fi
-
telegram_message=$(escape_telegram_markdown "$1")
if [ -z "$telegram_message" ]; then
echo_timestamped "Error: message variable is empty"
fi
}
-if ! command -v jq >/dev/null 2>&1; then
- echo_timestamped "Error: jq not found in PATH"
- exit 1
-fi
-
if ! command -v docker >/dev/null 2>&1; then
echo_timestamped "Error: docker not found in PATH"
exit 1