D
D
DUDE2020-05-09 15:18:58
Python
DUDE, 2020-05-09 15:18:58

How to implement bot state monitoring?

Hello everyone, I thought about one thing ...

I want the bot to write to me in the chat every hour about whether he is alive or not. The algorithm itself is written, but I don’t understand at all where it needs to be inserted.

I use telebot.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2020-05-09
@LazyTalent

1. schedule
2. Check process status by cron by pid and send status message
3. systemd

1
101-s, 2020-05-10
@101-s

as an option, those places where there is an alleged error wrap try .... except Exception as e
and call the function of sending messages to soap, telegrams, sms in this place

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question