R
R
Ruslan Serg2018-10-24 06:32:14
PHP
Ruslan Serg, 2018-10-24 06:32:14

How to register in Telegram bot in php?

If the bot is an endless loop, then how can you register in it? It is IN THE BOTA and not THROUGH THE BOTA or something else. That is, if the user comes to the bot, then the bot asks for a login, password and checks the login and password with the data in the database, and then the user simply uses the bot without the need to enter a login and password.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Edward, 2018-10-24
@edvardpotter

Everything is the same as with the usual registration / authorization on the site:

  1. We get a unique telegram-user ID .
  2. We ask for the necessary data (login and password).
  3. If the data is correct, then we associate this login with the ID from the first step.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question