save last_id more often

This commit is contained in:
2019-02-04 12:15:53 +03:00
parent 0c0e63f545
commit c1679c52a9
8 changed files with 15 additions and 12 deletions

View File

@@ -20,5 +20,4 @@ class ShittyWatercolourFeedModuleConfig(FeedModuleConfig):
p['data']['post_hint'] == 'image':
p = p['data']
bot.send_photo(chat_id, p['url'], p['title'])
last_id = p['created']
return last_id
yield p['created']