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

New Post: Best practise for tracking Tweets which contain own @ScreenName

$
0
0
You need to use fs.AddFollow(). It gives all tweets made by the user and all tweets mentioning the user (including retweets of the user's tweets by other users).
var stream = Stream.CreateFilteredStream();
stream.AddFollow(User.GetUserFromScreenName("BBC_TopGear"));
stream.MatchingTweetReceived += (sender, args) => Console.WriteLine(args.Tweet.Text);
stream.StreamStarted += (sender, args) => Console.WriteLine("stream started...");
stream.StartStreamMatchingAnyCondition();
I just tested by replying to bbctopgear and it works as expected.

Hope this helps.

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>