Fix tenorGif
All checks were successful
/ build (push) Successful in 2m11s

This commit is contained in:
Astra 2026-05-15 22:01:50 +01:00
parent 907a191bfa
commit 48d565111e

View file

@ -391,7 +391,7 @@ func (h *handler) ProcessPost(event *models.Event) error {
mediaGroup = append(mediaGroup, mediaAdd) 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 := tgbotapi.NewInputMediaVideo(tgbotapi.FileURL(po[0].URI))
tenorGif.Caption = captionText tenorGif.Caption = captionText
tenorGif.ParseMode = tgbotapi.ModeHTML tenorGif.ParseMode = tgbotapi.ModeHTML