How can I get a full tweet with the twitter npm module?


#1

This is what I tried:

var stream = client.stream('statuses/filter', {
	follow: following,
	tweet_mode: 'extended'
});

stream.on('data', function(event) {
	console.log(event)
});

#2

If the tweet copy exceeds 140 characters and truncated is true, try event.extended_tweet.full_text to get the full text instead of event.text.

Also the tweet_mode parameter is only valid on the REST API and is not supported when requesting the Streaming API.

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


#3

You’re using the streaming API, so the tweet_mode parameter is not supported. Look for the extended_tweet section of the Tweet object.