E
E
estry2021-09-25 22:04:53
Python
estry, 2021-09-25 22:04:53

pyrogram authorization. How to make output to a form in Django?

Hello. I make software on pyrogram. You need to log in to your account. In pycharm it asks for a confirmation code in the terminal. Is it possible to do something so that the request for the code is redirected to the form on the Django web interface?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Maryasov, 2022-02-14
@estry

pyrogram has a method sign_in()
Documentation
In short, you need to call the method send_code(), passing the phone number. Then call the methodsign_in()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question