Answer the question
In order to leave comments, you need to log in
How to solve wall.post method error in Python?
Here is my code:
import vk_api
id = 242306128
vk = vk_api.VkApi(token="*здесь находится токен от группы*")
vk._auth_token()
vk.method("wall.post", {"owner_id": -180510660,"message":'Новая покупка!🔥\n\[email protected]' + str(id) + "(" + str(
vk.method("users.get", {"user_ids": id})[0]['first_name']) + str(
vk.method("users.get", {"user_ids": id})[0]['last_name']) + ") - " + str(1222) + " коинов!"})
Answer the question
In order to leave comments, you need to log in
If you do not know English at all, then shove the error "method is unavailable with group auth" into the translator and understand that the group token does not give rights to call this method.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question