Answer the question
In order to leave comments, you need to log in
How to organize authorization in a third-party service in a Telegram bot?
I use Python Telegram Bot
to create a bot . The bot must parse the text of the message sent to it and send data to the database of a third-party web application written in Django on behalf of a registered user in this application.
I know that such a thing has already been done for GitHubBot, but Google did not help much. Tell me which way to read to do something like this.
Answer the question
In order to leave comments, you need to log in
If a third-party application supports API, then figure out how it works, throw requests and parse responses (json module to help)
If the application does not provide an API, you can send GET / POST requests (read about the requests module), then parse (BeautifullSoup module), receive the necessary data and send it to the bot.
To simulate requests from an authorized user, you can send the necessary cookies to the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question