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