Skip to content

Commit

Permalink
Update skip_updates_example.py
Browse files Browse the repository at this point in the history
  • Loading branch information
coder2020official committed Aug 16, 2021
1 parent f553960 commit f4ef236
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/skip_updates_example.py
Original file line number Diff line number Diff line change
@@ -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):
Expand All @@ -10,4 +10,4 @@ def send_welcome(message):
def echo_all(message):
bot.reply_to(message, message.text)

bot.polling()
bot.polling(skip_pending=True)# Skip pending skips old updates

0 comments on commit f4ef236

Please sign in to comment.