Home>

We need the bot to send a message with a delay of a few seconds. How can this be done? (Not using sleep())

Used this method:t= threading.Timer(2.0, func, [chat_user_id])

Is there an easier way? using telebot

Welcome! What do you mean by "easier". Add an explanation to the question itself, what you are looking for and what you want to achieve

Dmitry2022-01-24 12:21:08

With the specified method, I created functions with one message, maybe there is a method that can be used all in one function (Sending messages with a delay)

Alex2022-01-24 12:32:11