mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-23 01:06:17 +00:00
deploy.sh: Telegram message is now HTML formatted.
This commit is contained in:
parent
b0fa297a61
commit
d796cb1bf0
@ -73,10 +73,10 @@ echo "Pushing the docker image..."
|
|||||||
docker push fabianonline/telegram_backup
|
docker push fabianonline/telegram_backup
|
||||||
|
|
||||||
echo "Notifying the Telegram group..."
|
echo "Notifying the Telegram group..."
|
||||||
release_notes=$(sed 's/\* /• /' <<< "$release_notes")
|
release_notes=$(sed 's/\* /• /' | sed 's/&/&/g' | sed 's/</\</g' | sed 's/>/\>/g' <<< "$release_notes")
|
||||||
message="Version $VERSION released"$'\n'$'\n'"$release_notes"$'\n'$'\n'"$release_url"
|
message="<b>Version $VERSION was just released</b>"$'\n'$'\n'"$release_notes"$'\n'$'\n'"$release_url"
|
||||||
|
|
||||||
curl https://api.telegram.org/bot${BOT_TOKEN}/sendMessage -XPOST --form "text=<-" --form-string "chat_id=${CHAT_ID}" <<< "$message"
|
curl https://api.telegram.org/bot${BOT_TOKEN}/sendMessage -XPOST --form "text=<-" --form-string "chat_id=${CHAT_ID}" --form-string "parse_mode=HTML" --form-string "disable_web_page_preview=true" <<< "$message"
|
||||||
|
|
||||||
echo "Cleaning release_notes.txt..."
|
echo "Cleaning release_notes.txt..."
|
||||||
> release_notes.txt
|
> release_notes.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user