add twitter feed

This commit is contained in:
2019-03-09 22:11:42 +03:00
parent 10f3612cf7
commit dfb584116d
11 changed files with 136 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ def execute_feed(feed_pk):
feed.lock = True
feed.save()
bot = TeleBot(config.feed_bot_token)
bot = TeleBot(config.feed_bot_token, threaded=False)
for last_id in feed.config.execute(bot, feed.chat_id, feed.last_id):
if last_id:
feed.last_id = last_id