.. versionadded:: 4.0
+ .. versionchanged:: 4.13
+ Added ``verified_type`` field
+
Attributes
----------
data : dict
The URL specified in the user's profile, if present.
verified : bool | None
Indicates if this user is a verified Twitter User.
+ verified_type : str | None
+ Indicates the type of verification a user account has (blue, business,
+ government or none).
withheld : dict | None
Contains withholding details for `withheld content`_, if applicable.
__slots__ = (
"data", "id", "name", "username", "created_at", "description",
"entities", "location", "pinned_tweet_id", "profile_image_url",
- "protected", "public_metrics", "url", "verified", "withheld"
+ "protected", "public_metrics", "url", "verified", "verified_type",
+ "withheld"
)
def __init__(self, data):
self.public_metrics = data.get("public_metrics")
self.url = data.get("url")
self.verified = data.get("verified")
+ self.verified_type = data.get("verified_type")
self.withheld = data.get("withheld")
def __repr__(self):