W
W
wenzeslaus2021-05-26 14:25:14
Python
wenzeslaus, 2021-05-26 14:25:14

How to make a function that will make it clear that the bot has turned on?

I want to make a function in which I can understand that the bot has turned on. Those. I start the bot and a condition is triggered under which I can understand that my bot has started working. This is for VK bot

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Altry, 2021-05-27
@wenzeslaus

import logging
Learn to use logging. There is a lot of useful information there.

S
sequelsur, 2021-05-26
@sequelsur

use the Telegram API, and if the bot is turned on, you will receive a message in Telegram.
Or do a banal print().
as you prefer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question