updated GetTweet anon endpoint

This commit is contained in:
Valentine 2024-03-08 18:43:26 +03:00
parent 00eb392224
commit 02625a94bd
2 changed files with 78 additions and 1 deletions

View file

@ -264,3 +264,15 @@ func (conversation *threadedConversation) parse() []*Tweet {
}
return tweets
}
type tweetResult struct {
Data struct {
TweetResult struct {
Result result `json:"result"`
} `json:"tweetResult"`
} `json:"data"`
}
func (tweetResult *tweetResult) parse() *Tweet {
return tweetResult.Data.TweetResult.Result.parse()
}