C
C
Chechechevichka2020-06-05 19:02:27
Python
Chechechevichka, 2020-06-05 19:02:27

How to make a one-time command in a telegram bot?

Hello!
I need the telegram bot to not respond to repeated commands (for those who like to play around).
For the '/start' command to be a one time use.
Thanks in advance for your reply

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DUDE, 2020-06-05
@Chechechevichka

Keep a list of users who have already entered this command in the database. So when you restart the bot, it will always work the same way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question