J
J
jerwright2021-08-30 13:27:27
Python
jerwright, 2021-08-30 13:27:27

How to use register_next_step_handler in chats?

There is a telegram bot that will be used in groups. When I add register_next_step_handler to my functions, the bot captures the next message. But instead of the user who called the command, someone else can write. Is there any way to capture a specific user's message via next_step_handler?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergo Zar, 2021-08-30
@jerwright

I think you can temporarily write the user id to the database and if the same person answered that is in the database, then you do what you need and delete the person from the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question