Answer the question
In order to leave comments, you need to log in
How to upload an image to a VK wall using vk api python?
What am I doing wrong ?
Answer the question
In order to leave comments, you need to log in
result = response.text
you assigned a text value to the result variable, so the string cannot have the keys ['photo'], ['server'], and so on. you can change to result = response
either
vk.photos.saveWallPhoto(group_id = group_id, photo = response['photo'], server = response['server'], hash = response['hash'])
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question