Answer the question
In order to leave comments, you need to log in
How to write authorization in Telegram bot in Python?
There is a bot written in Python 3.7 using the pyTelegramBotApi 3.6.6 library.
The bot is configured to retrieve information from the database, but since access to the bot can be obtained by anyone who recognizes his name, the question of authorization becomes. Actually, how can I use this library to issue authorization by user ID?
PS I apologize for possible spelling / punctuation errors, yes, the school is our everything ...
Answer the question
In order to leave comments, you need to log in
As far as I remember, by means of the library in any way.
I advise you to start any database (or a local file) and write user IDs into it and whether it is authorized ....
About authorization methods, it's just complete fantasy. From a password to complex certificates.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question