-
Notifications
You must be signed in to change notification settings - Fork 10
Description
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.