fix: handle TweetWithVisibilityResults and rest_id fallback in CreateTweet response

This commit is contained in:
Lain Iwakura 2026-05-21 20:39:28 +03:00
parent 9d847cd18e
commit d5a47d4a67
Signed by: lain
GPG key ID: 8160466B2E8D1441
2 changed files with 21 additions and 11 deletions

View file

@ -7,7 +7,8 @@ import (
)
type tweet struct {
Core struct {
RestID string `json:"rest_id"`
Core struct {
UserResults struct {
Result struct {
IsBlueVerified bool `json:"is_blue_verified"`