bear / python-twitter

A Python wrapper around the Twitter API.
Apache License 2.0
3.41k stars 955 forks source link

Always add tweet_mode to API requests #660

Closed Eboreg closed 2 years ago

Eboreg commented 4 years ago

I discovered I wasn't getting the full_text attribute from the PostUpdate endpoint, only a truncated text. This is because Api._RequestUrl() only added the tweet_mode parameter to GET requests. But the Twitter API docs explicitly say: "add the [tweet_mode=extended] parameters to any endpoint" (my emphasis). https://developer.twitter.com/en/docs/tweets/tweet-updates


This change is Reviewable