Skip to content

Make the telegram bot detect if a bot is stopped or crashed #526

@iThom

Description

@iThom

First of all thank you for this great idea of telegram bot to control the bot it's brillant !

It would be great to improve the /showinfo command by detecting a long bot inactivity (more than 10min without refreshing it's json file) with the status "stopped".

A way to do it would be to add a metadata last_updated of type datetime or timestamp in the <botname>.json and to check if the last refresh was more than 10 minutes ago for example, then status would be "stopped" otherwise status "active" or the one when it's paused.

My 2 cents :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions