New Features / Improvements
- Add support for Direct Messages with Twitter API v2 (#1995)
- Add
DirectMessageEvent
model - Add
Client.get_direct_message_events
,Client.create_direct_message
, andClient.create_direct_message_conversation
- Add
AsyncClient.get_direct_message_events
,AsyncClient.create_direct_message
, andAsyncClient.create_direct_message_conversation
- Add
- Add support for Python 3.11 (a391c66)
- Add support for
variants
Media
field (#1910, e31be15)
Bug Fixes
- Handle different method return types in API v2 pagination (#1843, #1861, 381bf91, 3874579)
- Add missing angle bracket to string representation of
ReferencedTweet
(d4df069)
Misc
- Add documentation for
edit_history_tweet_ids
andedit_controls
Tweet
fields (2b1e159)- This documentation was previously missing from Twitter's API documentation
- Fix class references in notes in documentation for
AsyncClient
methods (f737b87) - Fix signature of
Client.get_quote_tweets
in documentation (6f7de39) - Update actions/setup-python from v2 to v4 (f16b3dc, 0148be7)