use parsemode=markdown
This commit is contained in:
parent
5e7f1150d5
commit
c2763a3599
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue