Hello, I ran into a problem while writing the code for telegram bot. I need to set a cooldown for the /go command so that the user can run it every 2 hours and get the same message every time. And if the user tries to run the command before the cooldown ends, he should receive a message with a different text. Maybe someone knows how to write such code?
Hello, I ran into a problem while writing the code for telegram bot. I need to set a cooldown for the /go command so that the user can run it every 2 hours and get the same message every time. And if the user tries to run the command before the cooldown ends, he should receive a message with a different text. Maybe someone knows how to write such code?