use parsemode=markdown

This commit is contained in:
Rob Pearce 2023-11-27 10:54:50 +11:00
parent 5e7f1150d5
commit c2763a3599
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ CHAT=$(egrep -v '^#' "$CHATFILE")
msg="$*" 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=$?
[[ $rv -ne 0 ]] && fatal "curl failed" [[ $rv -ne 0 ]] && fatal "curl failed"
status=$(jq -r .ok <<<"${res}") status=$(jq -r .ok <<<"${res}")