Replying on a tweet with Twython

Cecil Westerhof Cecil at decebal.nl
Sat Feb 17 06:53:08 EST 2018


Cecil Westerhof <Cecil at decebal.nl> writes:

> I just found Twython. I managed to post a tweet with:
>     from twython import Twython
>     twitter = Twython(APP_KEY, APP_SECRET,
>                       OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
>     posted = twitter.update_status(status = quote)
>
> But I want to send a reply on this tweet. I tried:
>         posted = twitter.update_status(status = follow_up, in_reply_id = posted['id_str'])
>
> But that does not work. How could I make it work?

I need to use the following:
    posted = twitter.update_status(status = follow_up, in_reply_to_status_id = posted['id'])

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof



More information about the Python-list mailing list