diff options
author | Paul <36549980+Humorhenker@users.noreply.github.com> | 2021-01-14 23:42:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 23:42:13 +0100 |
commit | b039da1ebad490fee85c9432f70521f0bee9942f (patch) | |
tree | a1e9350cf816b3f4632e63624943264a29806c83 /bridge/telegram | |
parent | 8fcd0f3b6fadb0441491d8f874fc21cff8cb7302 (diff) | |
download | matterbridge-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')
-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 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 { |