mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-02 15:44:31 +02:00
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:
parent
83fed59404
commit
bda1a87cf9
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -132,7 +132,7 @@ jobs:
|
|||||||
"
|
"
|
||||||
echo "'$MSG'"
|
echo "'$MSG'"
|
||||||
POST="https://api.telegram.org/bot${TG_TOKEN}/sendMessage"
|
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
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user