This commit is contained in:
coder2020official 2021-09-12 00:30:56 +05:00
parent 88f91518c7
commit 4e37662ab3
6 changed files with 8 additions and 6 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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)

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(skip_pending=True,non_stop=True) # Skip old updates
bot.polling(none_stop=True)

View File

@ -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)

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