mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
upd
This commit is contained in:
parent
88f91518c7
commit
4e37662ab3
@ -73,4 +73,5 @@ def send_welcome(message):
|
||||
reply = "Please visit me via a provided URL from the website."
|
||||
bot.reply_to(message, reply)
|
||||
|
||||
bot.polling(skip_pending=True,non_stop=True) # Skip old updates
|
||||
|
||||
bot.polling()
|
||||
|
@ -25,4 +25,4 @@ def echo_message(message):
|
||||
bot.reply_to(message, message.text)
|
||||
|
||||
|
||||
bot.polling(skip_pending=True,non_stop=True) # Skip old updates
|
||||
bot.polling()
|
||||
|
@ -61,7 +61,7 @@ def default_query(inline_query):
|
||||
|
||||
|
||||
def main_loop():
|
||||
bot.polling(skip_pending=True) # Skip old updates
|
||||
bot.polling(True)
|
||||
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(skip_pending=True,non_stop=True) # Skip old updates
|
||||
bot.polling(none_stop=True)
|
||||
|
@ -78,4 +78,5 @@ def got_payment(message):
|
||||
parse_mode='Markdown')
|
||||
|
||||
|
||||
bot.polling(skip_pending=True,non_stop=True) # Skip old updates
|
||||
bot.skip_pending = True
|
||||
bot.polling(none_stop=True, interval=0)
|
||||
|
@ -10,4 +10,4 @@ def send_welcome(message):
|
||||
def echo_all(message):
|
||||
bot.reply_to(message, message.text)
|
||||
|
||||
bot.polling(skip_pending=True,non_stop=True) # Skip old updates
|
||||
bot.polling(skip_pending=True)# Skip pending skips old updates
|
||||
|
Loading…
Reference in New Issue
Block a user