From 7bc93c55061c9272927b2bccffbff94a6959cfdc Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 17 Apr 2022 13:35:11 +0200 Subject: Do not modify .webm files (telegram). Fixes #17** (#1802) --- bridge/telegram/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/telegram') diff --git a/bridge/telegram/handlers.go b/bridge/telegram/handlers.go index e4c2a36e..adf291dc 100644 --- a/bridge/telegram/handlers.go +++ b/bridge/telegram/handlers.go @@ -385,7 +385,7 @@ func (b *Btelegram) getDownloadInfo(id string, suffix string, urlpart bool) (str urlPart := strings.Split(url, "/") name = urlPart[len(urlPart)-1] } - if suffix != "" && !strings.HasSuffix(name, suffix) { + if suffix != "" && !strings.HasSuffix(name, suffix) && !strings.HasSuffix(name, ".webm") { name += suffix } text := " " + url -- cgit v1.2.3