upload_server = vk_session.method('photos.getChatUploadServer', {'chat_id': event.chat_id, 'crop_x': 10, 'crop_y': 25, 'crop_width': 1500})
imagePath = "C:/Users/Кирилл/Documents/BotVK/VkBot/VkBot/myimage.png"
img = {'photo': ('img.jpg', open(imagePath, 'rb'))}
photo_upload_response = requests.post(upload_server['upload_url'], files=img)
photo_upload_result = json.loads(photo_upload_response.text)
print(photo_upload_result)
vk_session.method('messages.setChatPhoto', {'file': photo_upload_result})