Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Problem with Filtered Stream

$
0
0
Hi Linvi,

Sorry to bother you again. I'm trying the following code:
var stream = Stream.CreateFilteredStream();
stream.AddFollow(User.GetLoggedUser(), tweet => Console.WriteLine(tweet.Text));
stream.StreamStarted += (sender, args) => Console.WriteLine("stream started...");
stream.StartStreamMatchingAnyCondition();
This should print out the tweet text when the user tweets something. However its not working.

I've to add:
stream.MatchingTweetReceived += (sender, args) => Console.WriteLine(args.Tweet.Text);
Just thought I'd clarify if its a bug or I'm doing something wrong.

Thanks
Lokesh

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>