Skip to content

Commit

Permalink
Merge pull request #150 from MerleLiuKun/feat-new-fields
Browse files Browse the repository at this point in the history
feat(model): ✨ add new fields from twitter
  • Loading branch information
MerleLiuKun authored Nov 22, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 6505749 + 9e5a727 commit 28d1fd2
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pytwitter/models/tweet.py
Original file line number Diff line number Diff line change
@@ -141,6 +141,7 @@ class TweetPublicMetrics(BaseModel):
reply_count: Optional[int] = field(default=None, repr=False)
like_count: Optional[int] = field(default=None)
impression_count: Optional[int] = field(default=None, repr=False)
bookmark_count: Optional[int] = field(default=None, repr=False)


@dataclass
1 change: 1 addition & 0 deletions pytwitter/models/user.py
Original file line number Diff line number Diff line change
@@ -91,3 +91,4 @@ class User(BaseModel):
default=None, repr=False, compare=False
)
withheld: Optional[UserWithheld] = field(default=None, repr=False, compare=False)
subscription_type: Optional[str] = field(default=None, repr=False, compare=False)

0 comments on commit 28d1fd2

Please sign in to comment.