Skip to content

Commit

Permalink
Do not modify .webm files (telegram). Fixes #17** (#1802)
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed Apr 17, 2022
1 parent d7cad3b commit 7bc93c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/telegram/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7bc93c5

Please sign in to comment.