Skip to content

/stop command #1081

@konard

Description

@konard

We need a command for telegram bot, that will make graceful stop, it should enter telegram bot into stop mode. In which it will stop accepting new tasks into /solve queue, /hive command should be disabled too. This command can only be executed by chat owner/creator (not all admins).

So after /stop command telegram bot should go to read-only mode it can still show /help /limits /version, but all write operations like /solve /hive should be rejected, and the reason should be that bot is stopped accepting tasks to execute, so the only way to restart it is either restart physically (the process) or by owner of the chat to execute /start.

Also /stop command should be scoped to chat.

While bot in read only mode, we can wait until all tasks are finished.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions