From 98e4dd2cab14f893f96892360a0e27c26bead14b Mon Sep 17 00:00:00 2001 From: Manuel Raimo Date: Thu, 22 Feb 2024 00:29:59 +0100 Subject: [PATCH] fix: change fxtwitter with vxtwitter fxtwitter doesn't support video embeds --- events.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events.go b/events.go index c594a8c..f5ed77d 100644 --- a/events.go +++ b/events.go @@ -72,13 +72,13 @@ func videoDownload(c tele.Context) error { } else { // For twitter, we send the same url with only fx appended to it if strings.HasPrefix(link, "https://twitter.com") { - err := c.Reply(strings.Replace(link, "https://twitter.com", "https://fxtwitter.com", 1), tele.Silent) + err := c.Reply(strings.Replace(link, "https://twitter.com", "https://vxtwitter.com", 1), tele.Silent) if err != nil { lit.Error(err.Error()) } } else { if strings.HasPrefix(link, "https://x.com") { - err := c.Reply(strings.Replace(link, "https://x.com", "https://fixupx.com", 1), tele.Silent) + err := c.Reply(strings.Replace(link, "https://x.com", "https://vxtwitter.com", 1), tele.Silent) if err != nil { lit.Error(err.Error()) }