S
S
samperirrrrr2020-05-19 21:53:06
Python
samperirrrrr, 2020-05-19 21:53:06

Why does an error occur when using the groups.edit method?

An error occurs while executing this code. Why?

import time, vk_api
from vk_api.longpoll import VkLongPoll, VkEventType

owner = 193104823#ид группы# названия сообщества

vk_session = vk_api.VkApi(token='токнн от группы')
api = vk_session.get_api()
api.groups.edit(group_id=owner,title='pia',description='his')

Error code:
Traceback (most recent call last):
    File "dlya artema.py", line 8, in <module>
        api.groups.edit(group_id=owner, title='p***a', description='p***o easy')
    File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/vk_api/vk_api.py", line 681, in __call__
        return self._vk.method(self._method, kwargs)
    File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/vk_api/vk_api.py", line 646, in __call__
        raise error
vk_api.exceptions.ApiError: [27] Group authorization failed: method is unavailable with group auth.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MixLtv, 2020-05-19
@MixLtv

This method is called from the token of the owner or group administrator, and VK, like me, does not hate censorship, we also know how to read screenshots.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question