From f8ad87760145c305db988c499ed4d8e9c1f5e0d5 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 2 Feb 2020 18:53:04 +0100 Subject: Add DisableWebPagePreview option (telegram). Closes #980 (#994) --- bridge/telegram/telegram.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge/telegram') diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index c7ead21f..ac45985e 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -131,6 +131,9 @@ func (b *Btelegram) sendMessage(chatid int64, username, text string) (string, er m.Text = username + html.EscapeString(text) m.ParseMode = tgbotapi.ModeHTML } + + m.DisableWebPagePreview = b.GetBool("DisableWebPagePreview") + res, err := b.c.Send(m) if err != nil { return "", err -- cgit v1.2.3