Update skip_updates_example.py

This commit is contained in:
_run 2021-08-16 22:03:17 +04:00
parent f553960096
commit f4ef2366b6
1 changed files with 2 additions and 2 deletions

View File

@ -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()
bot.polling(skip_pending=True)# Skip pending skips old updates