stop telebot to avoid threads limit
This commit is contained in:
parent
2f9fe8c534
commit
aae9e7aac7
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user