summaryrefslogtreecommitdiffstats
path: root/bridge/telegram/handlers.go
diff options
context:
space:
mode:
authorPaul <36549980+Humorhenker@users.noreply.github.com>2021-01-14 23:42:13 +0100
committerGitHub <noreply@github.com>2021-01-14 23:42:13 +0100
commitb039da1ebad490fee85c9432f70521f0bee9942f (patch)
treea1e9350cf816b3f4632e63624943264a29806c83 /bridge/telegram/handlers.go
parent8fcd0f3b6fadb0441491d8f874fc21cff8cb7302 (diff)
downloadmatterbridge-msglm-b039da1ebad490fee85c9432f70521f0bee9942f.tar.gz
matterbridge-msglm-b039da1ebad490fee85c9432f70521f0bee9942f.tar.bz2
matterbridge-msglm-b039da1ebad490fee85c9432f70521f0bee9942f.zip
Add jpe as valid image filename extension (telegram) (#1360)
Diffstat (limited to 'bridge/telegram/handlers.go')
-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 f1581a58..48cfd316 100644
--- a/bridge/telegram/handlers.go
+++ b/bridge/telegram/handlers.go
@@ -389,7 +389,7 @@ func (b *Btelegram) handleUploadFile(msg *config.Message, chatid int64) string {
Name: fi.Name,
Bytes: *fi.Data,
}
- re := regexp.MustCompile(".(jpg|png)$")
+ re := regexp.MustCompile(".(jpg|jpe|png)$")
if re.MatchString(fi.Name) {
c = tgbotapi.NewPhotoUpload(chatid, file)
} else {