infinity_polling?
This commit is contained in:
parent
2f503cba2d
commit
f898413b1f
18
bot.py
18
bot.py
|
@ -1193,15 +1193,6 @@ def update_notify(forum: int):
|
|||
"Обновился до версии " + telebot.formatting.escape_markdown(cur_version))
|
||||
|
||||
|
||||
print(version, cur_version)
|
||||
if version != cur_version:
|
||||
for i in db.keys():
|
||||
try:
|
||||
update_notify(int(i))
|
||||
print("Notified", i)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
def process1():
|
||||
bot.infinity_polling(none_stop=True)
|
||||
|
||||
|
@ -1225,5 +1216,14 @@ for i in threads:
|
|||
i.daemon = True
|
||||
i.start()
|
||||
|
||||
print(version, cur_version)
|
||||
if version != cur_version:
|
||||
for i in db.keys():
|
||||
try:
|
||||
update_notify(int(i))
|
||||
print("Notified", i)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
while True:
|
||||
time.sleep(1)
|
||||
|
|
Loading…
Reference in New Issue