diff --git a/Dockerfile b/Dockerfile index ba83fde7..3b53c752 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine AS builder COPY . /go/src/github.com/42wim/matterbridge -RUN apk update && apk add go git gcc musl-dev \ +RUN apk --no-cache add go git gcc musl-dev \ && cd /go/src/github.com/42wim/matterbridge \ && export GOPATH=/go \ && go get \ diff --git a/bridge/telegram/handlers.go b/bridge/telegram/handlers.go index 2479f689..6180cbb7 100644 --- a/bridge/telegram/handlers.go +++ b/bridge/telegram/handlers.go @@ -405,7 +405,7 @@ func (b *Btelegram) handleUploadFile(msg *config.Message, chatid int64) string { captiontext = msg.Username + html.EscapeString(fi.Comment) parsemode = tgbotapi.ModeHTML } - re := regexp.MustCompile(".(jpg|png)$") + re := regexp.MustCompile(".(jpg|jpe|png)$") if re.MatchString(fi.Name) { pc := tgbotapi.NewPhotoUpload(chatid, file) pc.Caption = captiontext