Disable web page preview on Telegram

The `disable_web_page_preview` parameter in the Telegram Bot API can be used to disable the web page preview for a message. This prevents the Telegram app from displaying a preview of the link in the message.
This commit is contained in:
Origami Official 2023-08-09 19:56:45 +06:00 committed by GitHub
parent 83fed59404
commit bda1a87cf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ jobs:
"
echo "'$MSG'"
POST="https://api.telegram.org/bot${TG_TOKEN}/sendMessage"
curl -X POST --data-urlencode "parse_mode=Markdown" --data-urlencode "text=${MSG}" --data-urlencode "chat_id=${TG_CHAT}" "$POST"
curl -X POST --data-urlencode "parse_mode=Markdown" --data-urlencode "disable_web_page_preview=true" --data-urlencode "text=${MSG}" --data-urlencode "chat_id=${TG_CHAT}" "$POST"
- uses: actions/upload-artifact@v3
with: