What's the best C# Twitter API for a twitter bot

前端 未结 6 2013
星月不相逢
星月不相逢 2020-12-13 19:41

I\'m writing a C# app that will be required to integrate with twitter, I need to be able to do the following:

  • send direct messages
  • read all messages t
6条回答
  •  时光说笑
    2020-12-13 19:48

    I know that this post got marked as answered but I wanted to share how easy it is to send messages to multiple users at once with Tweetinvi (http://tweetinvi.codeplex.com/).

    IToken token = new Token("userKey", "userSecret", "consumerKey", "consumerSecret");
    ITokenUser u = new TokenUser(token);
    // Publish Direct Message to all the followers
    u.PublishMessage("Hello world!", u.followers);
    // Done!
    

    I believe this can be of great help to develop a twitter bot.

提交回复
热议问题