K
K
KinRovtaz2018-06-05 13:31:42
Python
KinRovtaz, 2018-06-05 13:31:42

How to prevent pressing /start the second and subsequent times pytelebotapi?

It is necessary to forbid pressing start twice per session (the user entered into a dialogue with the bot and until the whole script is played, the /start command does nothing, preferably without saving the state in the database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
djigurda, 2018-06-05
@djigurda

Try using bot.register_next_step_handler()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question