Twitter Thread made with twitter api's `statuses/update` end point with `in_reply_to_status_id` option not working as expected



I’m trying to make a twitter thread using twitter api (using twit npm package). When I see the thread from the twitter bot account, I can see the thread (see image) —

Threading showing fine from twitter bot account image

But when I see that after logging out (or from my personal account), something weird happens. The tweets aren’t show in a thread, but instead all the tweets following the first tweet are in reply to the first tweet (so it’s not shown as a continuous thread) (see images) —

Thread not showing when seeing from any other account (or after logging out)

All tweets except first are in reply to the first tweet instead of being in reply to each other to make a thread

What could I be doing wrong?