From b039da1ebad490fee85c9432f70521f0bee9942f Mon Sep 17 00:00:00 2001 From: Paul <36549980+Humorhenker@users.noreply.github.com> Date: Thu, 14 Jan 2021 23:42:13 +0100 Subject: Add jpe as valid image filename extension (telegram) (#1360) --- bridge/telegram/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge') 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 { -- cgit v1.2.3