diff --git a/telegram-send.sh b/telegram-send.sh index 5562c6a..f403afe 100755 --- a/telegram-send.sh +++ b/telegram-send.sh @@ -61,7 +61,7 @@ CHAT=$(egrep -v '^#' "$CHATFILE") msg="$*" -res=$(curl -s --data "text=$msg" --data "chat_id=$CHAT" 'https://api.telegram.org/bot'$TOKEN'/sendMessage' 2>&1) +res=$(curl -s --data "text=$msg" --data "chat_id=$CHAT" --data "parse_mode=markdown" 'https://api.telegram.org/bot'$TOKEN'/sendMessage' 2>&1) rv=$? [[ $rv -ne 0 ]] && fatal "curl failed" status=$(jq -r .ok <<<"${res}")