fix vk feed
This commit is contained in:
parent
05cdc18814
commit
ac925ee704
@ -42,6 +42,10 @@ class VKFeedModuleConfig(FeedModuleConfig):
|
|||||||
|
|
||||||
def execute(self, bot: TeleBot, chat_id, last_id):
|
def execute(self, bot: TeleBot, chat_id, last_id):
|
||||||
config._reload_maybe()
|
config._reload_maybe()
|
||||||
|
|
||||||
|
if last_id is None:
|
||||||
|
last_id = 0
|
||||||
|
|
||||||
vk_session = VkApi(login=config.vk_username, password=config.vk_password, config=DatabaseConfig,
|
vk_session = VkApi(login=config.vk_username, password=config.vk_password, config=DatabaseConfig,
|
||||||
api_version='5.60')
|
api_version='5.60')
|
||||||
vk_session.auth()
|
vk_session.auth()
|
||||||
|
Loading…
Reference in New Issue
Block a user