V
V
Vova Putsyk2016-02-04 18:22:02
Python
Vova Putsyk, 2016-02-04 18:22:02

How to add alerts (eternal condition check) to telegram bot?

It is necessary to make, for example, every 10 seconds the bot checks the condition and takes the appropriate actions. The problem is that the bot is a list of decorators. I will be grateful for help.
PS For the bot, I use the pytelegrambotapi module.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vova Putsyk, 2016-02-05
@vovawed

The solution is: I used multithreading (thread).

K
Konstantin Dovnar, 2016-02-04
@SolidlSnake

You have a whole Python under the hood in which you can do whatever your heart desires and transfer the result of the work to the bot for execution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question