diff options
author | Wim <wim@42.be> | 2022-04-17 13:35:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-17 13:35:11 +0200 |
commit | 7bc93c55061c9272927b2bccffbff94a6959cfdc (patch) | |
tree | a923f9f711073c7032669a8e005bc361d0df2529 | |
parent | d7cad3b40456ddbc0db7935b6340298d885c2af1 (diff) | |
download | matterbridge-msglm-7bc93c55061c9272927b2bccffbff94a6959cfdc.tar.gz matterbridge-msglm-7bc93c55061c9272927b2bccffbff94a6959cfdc.tar.bz2 matterbridge-msglm-7bc93c55061c9272927b2bccffbff94a6959cfdc.zip |
Do not modify .webm files (telegram). Fixes #17** (#1802)
-rw-r--r-- | bridge/telegram/handlers.go | 2 |
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 |