fix vk feed

This commit is contained in:
bakatrouble 2019-01-25 19:40:47 +03:00
parent 05cdc18814
commit ac925ee704

View File

@ -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()