question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Replying to other tweets does not seem to work

See original GitHub issue

Replying to Tweets that are not my own does not work.

It works perfectly when replying to my own tweets, but as of now, I’ve not managed to reply to somebody else’s Tweets. The tweet will be pushed out and be visible on my profile under “Tweets & replies” but It will not show up when actually checking the original tweet.

TWEET_ID = <<<INSERT ID>>>
tweet = api.get_status(TWEET_ID)
comment = f'@{tweet.author.screen_name} Test Reply'
res = api.update_status(comment, in_reply_to_status_id_str=tweet.id)

Checking the response is somewhat strange. As it makes apparent that it replies to the user but not the tweet.

'in_reply_to_screen_name': **<<<tweet.author.screen_name>>>**,
 'in_reply_to_status_id': None,
 'in_reply_to_status_id_str': None,
 'in_reply_to_user_id': **<<<tweet.author.id_str>>>**,
 'in_reply_to_user_id_str': **<<<tweet.author.id_str>>>**,
 'is_quote_status': False, 

Could you provide a minimal working example replying to a tweet, that you did not author?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

14reactions
arturocernacommented, Sep 12, 2019

You need to also set auto_populate_reply_metadata=True in your call. Taking your example. res = api.update_status(comment, in_reply_to_status_id=tweet.id, auto_populate_reply_metadata=True)

After this your tweet should look like a reply to another tweet.

0reactions
ndrezncommented, Nov 6, 2020

Complete explanation for why tweets may be hidden is in #1422.

Read more comments on GitHub >

github_iconTop Results From Across the Web

11 Ways to Fix Cannot Reply to Comment on Twitter - Saint
1. The Comment May Be Limited to Just a Few People (Private Tweets). · 2. Twitter Recipient May Have Blocked You. · 3....
Read more >
How to post Twitter replies and mentions - Twitter Help Center
On Twitter, you can reply to Tweets or mention someone in your Tweets. Learn how to start Twitter conversations.
Read more >
[Updated] Twitter users report replies not loading or unable to ...
A possible reason why comments and replies were not loading might be related to the recent user-reported Twitter outage on Downdetector. In case ......
Read more >
Why can't I see a reply on Twitter? It says there are two, but I ...
In the same manner, any replies to a single tweet in a thread can be seen by tapping or clicking on that specific...
Read more >
The #1 Mistake We All Make on Twitter (It's Probably Not What ...
You can join conversations on Twitter by replying to others and by mentioning them in your own Tweets. ... A reply like this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found