E
E
enotcard2021-09-21 12:28:24
Bots
enotcard, 2021-09-21 12:28:24

How to identify a user in Telegram bot?

I want to create an authorization in the bot:
for example, each employee will have his own password
, so that the bot asks for a password at the beginning and if the employee enters his correct password, then the bot identifies him as Ivanov Ivan Ivanovich

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Golovanenko, 2021-09-21
@drygdryg

Use some kind of persistent storage that allows you to store data in key-value format (for example, a plain text file, JSON file, SQLite database) to store Telegram user IDs and passwords in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question