Why reply to other user is not working?

May 1, 2015 at 4:43 PM
Edited May 1, 2015 at 5:05 PM
Why reply to other user is not working?
        var tweet1 = Tweetinvi.Tweet.PublishTweet(DateTime.Now.ToString() + "post");
        var tweet2 = Tweetinvi.Tweet.CreateTweet(DateTime.Now.ToString() + "reply");
        tweet2.PublishInReplyTo(tweet1); // WORKING

        var userTimelineTweets = Timeline.GetUserTimeline("ABC");

        foreach (var item in userTimelineTweets)
        {
            var tweet3 = Tweetinvi.Tweet.CreateTweet(DateTime.Now.ToString() + "reply");
            tweet3.PublishInReplyTo(item); // DOES NOT WORK, CREATING NEW Thread
            break;
        }
Am I missing something?
Coordinator
May 4, 2015 at 3:21 PM
Hi there,

Sorry for the long time to reply. I would need more information concerning your problem.

if tweet3.PublishInReplyTo(item); returns false, it implies that an error occurred when performing the WebRequest.
Therefore you will need to take a look into the ExceptionHandler or disable it.
// Display the information of the latest Exception that occurred.
Console.WriteLine(ExceptionHandler.GetLastException().ToString());

// Disable ExceptionHandler
ExceptionHandler.SwallowWebExceptions = false;
Please get back to me we these information and I willl do my best to help you with this.
Cheers,
Linvi
May 5, 2015 at 6:39 PM
After adding
var newTweet = Tweetinvi.Tweet.CreateTweet(string.Format("@{0} {1}", item.Creator.ScreenName, GetText(Replys[ran].Text)));
its working