K
K
kirillinyakin2020-09-06 15:58:17
Python
kirillinyakin, 2020-09-06 15:58:17

How to clear PyTelegramBotApi update queue?

Hello everyone, How can I clear the update queue before starting the bot?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-09-06
@kirillinyakin

What queue? Do you mean messages received while the bot was inactive?
bot = telebot.TeleBot('', skip_pending=True)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question