From 48d565111ea18df4ffc3f4358e58356285819011 Mon Sep 17 00:00:00 2001 From: Astra Date: Fri, 15 May 2026 22:01:50 +0100 Subject: [PATCH] Fix tenorGif --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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