How to solve the error of the method in Python?

Here is my code:
import vk_api

id = 242306128
vk = vk_api.VkApi(token="*here is a token of the group*")
vk.method("", {"owner_id": -180510660,"message":'New purchase!🔥\n\n@id' + 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) + " coins!"})

Why an error occurs vk_api.exceptions.ApiError: [5] User authorization failed: method is unavailable with group auth , though there is an authorization token. What to do?
March 20th 20 at 11:33
1 answer
March 20th 20 at 11:35
If you do not know English, to push the error "method is unavailable with group auth" in the interpreter and understand what the group token does not give rights to call this method.
I understand that, but how to solve the problem? I tried to release the token only with the permission, but the result remained the same - Delbert.Quitzon94 commented on March 20th 20 at 11:38
@Giovani, obviously, to use the user token having the right to post on the wall of the group. - Mikayla.Roh commented on March 20th 20 at 11:41
@marietta.Spor, AAAAAAAAAA! Thank you very much! Really appreciate that. - Delbert.Quitzon94 commented on March 20th 20 at 11:44

Find more questions by tags PythonAPIVKontakte