Решение:
session = vk_api.VkApi(token = 'token') // Токен пользователя
id_group = 210610129
session.method('wall.createComment', {'owner_id': -id_group, 'post_id': 516, 'from_group': id_group, 'message': 'test'})
server = session.method('photos.getWallUploadServer', {'group_id': id_group})
req = requests.post(server['upload_url'], files={'photo': open(f'path/file','rb')}).json()
photo = session.method('photos.saveWallPhoto', {'group_id': id_group, 'photo': req['photo'], 'server': req['server'], 'hash': req['hash']})
session.method('wall.createComment',{'owner_id': -id_group, 'post_id': 516, 'from_group': id_group, 'attachments': f"photo{photo[0]['owner_id']}_{photo[0]['id']}"})