Skip to content

Commit

Permalink
fix: change fxtwitter with vxtwitter
Browse files Browse the repository at this point in the history
fxtwitter doesn't support video embeds
  • Loading branch information
TheTipo01 committed Feb 21, 2024
1 parent 8c5519d commit 98e4dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit 98e4dd2

Please sign in to comment.