desmondmorris / node-twitter

Client library for the Twitter REST and Streaming API's.
https://www.npmjs.com/package/twitter
MIT License
1.27k stars 238 forks source link

how to read truncated tweets #338

Open mayorityz opened 4 years ago

mayorityz commented 4 years ago

Is there a way to read truncated texts? I think there used to be a long_text or something in the return tweet object.

Thanks.

ghost commented 4 years ago

I'm doing it like this: client.get('statuses/show', {id: tweetId, tweet_mode: 'extended'}, (error, tweet)=>{ if(error){ console.log(error) } console.log(tweet.full_text); });