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="$*"
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}")