stop telebot to avoid threads limit

This commit is contained in:
bakatrouble 2019-02-19 13:57:08 +03:00
parent 2f9fe8c534
commit aae9e7aac7

View File

@ -34,6 +34,7 @@ def execute_feed(feed_pk):
if last_id: if last_id:
feed.last_id = last_id feed.last_id = last_id
feed.save() feed.save()
bot.stop_bot()
feed.last_check = timezone.now() feed.last_check = timezone.now()
feed.save() feed.save()
finally: finally: