I have trouble unlocking the length of tweets I receive using the anaconda librairy (https://github.com/ChimeraCoder/anaconda). If tweets are too long, they're truncated and end with "...". I would like to receive the full message. Below is the code I'm using :
trackingArray := []string{"trump", "obama"}
anaconda.SetConsumerKey(consumerKey)
anaconda.SetConsumerSecret(consumerSecret)
api := anaconda.NewTwitterApi(accessToken, accessTokenSecret)
stream := api.PublicStreamFilter(url.Values{
"track": trackingArray,
})
for v := range stream.C {
t, ok := v.(anaconda.Tweet)
if !ok {
logrus.Warningf("received unexpected value of type %T", v)
continue
}
fmt.Print(t.Text)
fmt.Print(t.FullText)
}
Thanks to the answer below I tried t.FullText but both printing methods print exactly the same tweet (the full tweet if its length is low and a truncated tweet if its length is over 140 characters). Thanks in advance for your time !