diff --git a/main.go b/main.go index a305204..701c9d0 100644 --- a/main.go +++ b/main.go @@ -391,7 +391,7 @@ func (h *handler) ProcessPost(event *models.Event) error { mediaGroup = append(mediaGroup, mediaAdd) } } - } else if po[0].Type == "external" { + } else if po[0].Type == "gif" || po[0].Type == "external" { tenorGif := tgbotapi.NewInputMediaVideo(tgbotapi.FileURL(po[0].URI)) tenorGif.Caption = captionText tenorGif.ParseMode = tgbotapi.ModeHTML