From ac925ee7042e5f0a2cd396eeec718adbd69fd319 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 25 Jan 2019 19:40:47 +0300 Subject: [PATCH] fix vk feed --- feeds/modules/vk_feed.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/feeds/modules/vk_feed.py b/feeds/modules/vk_feed.py index b1fe4e2..a822134 100644 --- a/feeds/modules/vk_feed.py +++ b/feeds/modules/vk_feed.py @@ -42,6 +42,10 @@ class VKFeedModuleConfig(FeedModuleConfig): def execute(self, bot: TeleBot, chat_id, last_id): config._reload_maybe() + + if last_id is None: + last_id = 0 + vk_session = VkApi(login=config.vk_username, password=config.vk_password, config=DatabaseConfig, api_version='5.60') vk_session.auth()