aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-02-18 23:23:55 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-02-18 23:23:55 +0100
commit4b945da9078be5f6f236cb4cbb5490fad22f9497 (patch)
tree8df9044e0e06727e234564e91810190527a25534 /global-functions
parent06b235b3b7a3fdc1a22e1622ceaf545376e8b01f (diff)
global-functions: $FlushTelegramQueue: disable web page preview
... just as without queue.
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/global-functions b/global-functions
index 8777c18..d1fcf05 100644
--- a/global-functions
+++ b/global-functions
@@ -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;