Пример #1
0

if __name__ == "__main__":
    authorize = vk_api.VkApi(token=config["group"]["group_token"])
    longpoll = VkBotLongPoll(
        authorize,
        group_id=config["group"]["group_id"]
    )

    bot = authorize.get_api()

    vk_session = vk_api.VkApi(
        login=config["user"]["login"],
        password=config["user"]["password"]
    )

    vk_session.auth()
    vk = vk_session.get_api()
    vk_audio = audio.VkAudio(vk_session)

    VK_CONFIG_PATH.unlink()

    recognizer = Recognizer()
    recognizer.auth(config)

    vkbot = Bot()
    utils = Utils()
    
    logging.info("Авторизация прошла успешно")

    vkbot.run()