summaryrefslogtreecommitdiffstats
path: root/bridge/telegram
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-04-17 13:35:11 +0200
committerGitHub <noreply@github.com>2022-04-17 13:35:11 +0200
commit7bc93c55061c9272927b2bccffbff94a6959cfdc (patch)
treea923f9f711073c7032669a8e005bc361d0df2529 /bridge/telegram
parentd7cad3b40456ddbc0db7935b6340298d885c2af1 (diff)
downloadmatterbridge-msglm-7bc93c55061c9272927b2bccffbff94a6959cfdc.tar.gz
matterbridge-msglm-7bc93c55061c9272927b2bccffbff94a6959cfdc.tar.bz2
matterbridge-msglm-7bc93c55061c9272927b2bccffbff94a6959cfdc.zip
Do not modify .webm files (telegram). Fixes #17** (#1802)
Diffstat (limited to 'bridge/telegram')
-rw-r--r--bridge/telegram/handlers.go2
1 files changed, 1 insertions, 1 deletions
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