Refactor to work with VK API 5.7

Previous version is not working with VK API 5.7 so I made some refactoring to get it work