semifor / net-twitter-lite

A lighter weight (non-Moose) Perl interface to the Twitter API
Other
26 stars 11 forks source link

show_status(id) method does not return 'extended_tweet' for tweets longer than 140 chars. #29

Closed prsquee closed 5 years ago

prsquee commented 5 years ago

Hello,

Since twitter introduced tweets with 280 characters, if a tweet is long than 140 chars, the 'text' gets truncated and the full tweet is found in a new entity called extended_tweet->{full_text}. At the same time, a boolean 'truncated' can be used to determine if a tweet is longer than 140.

I hope Net:Twitter:Lite can be updated to include this. Thanks

Reference: https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/tweet-object

prsquee commented 5 years ago

Actually I just needed to pass on tweet_mode => 'extended' to show_status() and it will gets me the full_text as well as extended_entities.

Reference: https://developer.twitter.com/en/docs/tweets/tweet-updates