Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set cooldown for commands? #225

Open
sssherrr opened this issue Nov 27, 2022 · 0 comments
Open

How to set cooldown for commands? #225

sssherrr opened this issue Nov 27, 2022 · 0 comments

Comments

@sssherrr
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant