Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

How to set cooldown for commands? #225

@sssherrr

Description

@sssherrr

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions