global-functions: $FlushTelegramQueue: disable web page preview

... just as without queue.
This commit is contained in:
Christian Hesse 2021-02-18 23:23:55 +01:00
parent 06b235b3b7
commit 4b945da907

View file

@ -348,7 +348,8 @@
("https://api.telegram.org/bot" . $TelegramTokenId . "/sendMessage") \
http-data=("chat_id=" . ($Message->"chatid") . \
"&disable_notification=" . ($Message->"silent") . \
"&parse_mode=" . ($Message->"parsemode") . "&text=" . ($Message->"text"));
"&disable_web_page_preview=true&parse_mode=" . ($Message->"parsemode") . \
"&text=" . ($Message->"text"));
:set ($TelegramQueue->$Id);
} on-error={
$LogPrintExit debug ("Sending queued Telegram message failed.") false;