From f4ef2366b6d73ed60cd00f616bd727546266265f Mon Sep 17 00:00:00 2001 From: _run Date: Mon, 16 Aug 2021 22:03:17 +0400 Subject: [PATCH] Update skip_updates_example.py --- examples/skip_updates_example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/skip_updates_example.py b/examples/skip_updates_example.py index 805c9e491..0bd631b9e 100644 --- a/examples/skip_updates_example.py +++ b/examples/skip_updates_example.py @@ -1,6 +1,6 @@ import telebot -bot = telebot.TeleBot("TOKEN",skip_pending=True)# Skip pending skips old updates +bot = telebot.TeleBot("TOKEN") @bot.message_handler(commands=['start', 'help']) def send_welcome(message): @@ -10,4 +10,4 @@ def send_welcome(message): def echo_all(message): bot.reply_to(message, message.text) -bot.polling() \ No newline at end of file +bot.polling(skip_pending=True)# Skip pending skips old updates