Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 257e28e05ada2f27e9a970acea11461e2055687f Author: Paul <36549980+Humorhenker@users.noreply.github.com> Date: Thu Jan 14 23:42:13 2021 +0000 Add jpe as valid image filename extension (telegram) (#1360) diff --git a/bridge/telegram/handlers.go b/bridge/telegram/handlers.go index f1581a5..48cfd31 100644 --- a/bridge/telegram/handlers.go +++ b/bridge/telegram/handlers.go @@ -3897 +3897 @@ 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 {