title: Replying to a tweet using twit and Node.js
body: <p>I am using the Twit Node.js API. 
  What I am trying to do is reply to a tweet that matches a certain keyword. I want my reply tweet to show up within the other tweet underneath. Like when you reply via app or website. </p>
  
  <p>My code to do that is here:</p>
  
  <pre><code>var reply = function(tweet) {
    var res = {
      status: 'This is a tweet',
      in_reply_to_status_id: tweet.id_str
    };
  
    twitter.post('statuses/update', res,
      function(err, data, response) {
        console.log(data);
      }
    );
  }
  </code></pre>
  
  <p>The status is written correctly to the reply JSON but in_reply_to_status_id remains null. The tweet is posted to the bots account but not in reply to the tweet is is supposed to be replying to. </p>
  
  <p>Why dos it not work?</p>
  
  <p>And yes I have tried to write to in_reply_to_status_id_str and I have tryed to make the tweet.id_str a string. </p>
  
  <p>I there anyone who knows what I am missing?</p>
  
  <p>Thank you!</p>
  
  <p>My response JSON is here: </p>
  
  <pre><code>{ created_at: 'Wed Jun 21 07:44:22 +0000 2017',
    id: 877431986071142400,
    id_str: '877431986071142400',
    text: 'This is a tweet',
    truncated: false,
    entities: { hashtags: [], symbols: [], user_mentions: [], urls: [] },
    source: '&lt;a href="https://example.com" rel="nofollow"&gt;Spatinator&lt;/a&gt;',
    in_reply_to_status_id: null,
    in_reply_to_status_id_str: null,
    in_reply_to_user_id: null,
    in_reply_to_user_id_str: null,
    in_reply_to_screen_name: null,
  </code></pre>
  
  <p>If you need more of the respone JSON let me know.</p>