You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
The text was updated successfully, but these errors were encountered:
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 :)
The text was updated successfully, but these errors were encountered: