1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00
This commit is contained in:
coder2020official 2021-09-12 00:24:52 +05:00
parent 5c80f11261
commit 5d611ea7f3
7 changed files with 7 additions and 9 deletions

View File

@ -43,4 +43,4 @@ def bye_user(message):
bot.add_custom_filter(MainFilter)
bot.add_custom_filter(IsAdmin)
bot.polling(skip_pending=True) # Skip old updates
bot.polling(skip_pending=True,non_stop=True) # Skip old updates

View File

@ -73,5 +73,4 @@ def send_welcome(message):
reply = "Please visit me via a provided URL from the website."
bot.reply_to(message, reply)
bot.polling()
bot.polling(skip_pending=True,non_stop=True) # Skip old updates

View File

@ -25,4 +25,4 @@ def echo_message(message):
bot.reply_to(message, message.text)
bot.polling()
bot.polling(skip_pending=True,non_stop=True) # Skip old updates

View File

@ -61,7 +61,7 @@ def default_query(inline_query):
def main_loop():
bot.polling(True)
bot.polling(skip_pending=True) # Skip old updates
while 1:
time.sleep(3)

View File

@ -24,4 +24,4 @@ def callback_query(call):
def message_handler(message):
bot.send_message(message.chat.id, "Yes/no?", reply_markup=gen_markup())
bot.polling(none_stop=True)
bot.polling(skip_pending=True,non_stop=True) # Skip old updates

View File

@ -78,5 +78,4 @@ def got_payment(message):
parse_mode='Markdown')
bot.skip_pending = True
bot.polling(none_stop=True, interval=0)
bot.polling(skip_pending=True,non_stop=True) # Skip old updates

View File

@ -10,4 +10,4 @@ def send_welcome(message):
def echo_all(message):
bot.reply_to(message, message.text)
bot.polling(skip_pending=True)# Skip pending skips old updates
bot.polling(skip_pending=True,non_stop=True) # Skip old updates