T
T
tesko2019-08-22 03:50:22
Python
tesko, 2019-08-22 03:50:22

How to check Twitter subscription?

Hi all.
I am writing a telegram bot in python and one of the tasks is to check if a person is subscribed to the page.
You have to wait to access the API. And then, not the fact that 100% will give.
That is, once again: the bot asks to subscribe to twitter. The user clicks on the "Subscribe" button, he is redirected to twitter. Next, the bot must check the subscription.
What is the solution to check?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zylkov, 2019-08-22
@zylkov

To be honest, I haven't worked with the Twitter API. But I see an obvious solution: The user must indicate his login in the twitter (or do it somehow through the authorization form if the tweeter allows) to the bot, then when the user has confirmed that he has subscribed to the account of interest in the twitter, the bot simply makes a GET request for the list of account subscriptions and searches for the login our user. But I also see problems in this idea: You can specify a fake login in a twitter if the tweeter does not allow the application to log in (you need to find how to check this)

A
aarifkhamdi, 2019-08-22
@aarifkhamdi

Did something similar recently. The only sane way to check that a user has subscribed/tweeted is to request OAuth from them and tweet/subscribe themselves with the token they received from the user.
Alternative - GET statuses/retweets/:id. API
Without Twitter API you can't figure it out

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question