mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
upd
This commit is contained in:
parent
5c80f11261
commit
5d611ea7f3
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user