I have added to
@watchdog_robot and
@watchdog_clone_robot the ability to manually ban and mute users.
To ban a user, you need to respond in the chat to their message with the "+ban" command — the user will be kicked out of the chat and the bot will write to the chat about it. You can specify the command in this form "+ban asdf", then the reason "asdf" will be indicated in the bot's message about moderating the user. The reason can be multiple words, all text after the time period will be used as the reason e.g. "+ban go away evil".
With the "+bandel" command, you can not only ban a user, but also delete their recent (up to 1 one day ago) messages.
Use "+kick" command to remove user from a group, but let them to join a group again.
To put a user into read-only, you need to use the "+mute d7" command in response to the user's message, which means put the user into read-only for seven days. The read-only period is specified as a letter and a number, where the letter can be m — minute, h — hour, d — day, w — week. In this command, you can also specify a reason: "+mute d7 spam".
In order to set read-only without a time limit, you need to use the word "forever" i.e. "+mute forever" or "+mute forever idiot", where "idiot" would be the reason.
For these commands to work, the bot must have the right to ban users.
With the "+del time" command, you can schedule the deletion of a message after a specified time. With the command "+unpin time", you can schedule the unpinning of a pinned message after a specified time. Both commands must be written in response to the message with which the operation is to be performed. The time is set in the same format as for the "+mute" command. The bot must have the rights to delete and pin messages.