twitterapi.models.tweet_response module

class sparta.twitterapi.models.tweet_response.TweetResponse(*, tweet: Dict[str, Any], includes: Dict[str, Any])

Bases: BaseModel

Pydantic model to represent tweet response, as Twitter’s own classes cannot be used due to inconsistencies of API and actual responses.

tweet

The original tweet object.

Type:

Dict[str, Any]

includes

The extension objects associated with the tweet (tweets, users, media, polls, places).

Type:

Dict[str, Any]

includes: Dict[str, Any]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

tweet: Dict[str, Any]