Answer the question
In order to leave comments, you need to log in
VK API Python access key?
Good afternoon, tell me, please, I just started writing bots for VK . I get an
error that there is no access:
vk_api.exceptions.ApiError: [27] Group authorization failed: method is unavailable with group auth.
Here is my code: I took the token from the community
I want to write a bot that, upon request, gives the first photo of the album and a link to it
import vk_api
import requests
import random
token='49-----------33d0e19a5f29a2e6561c0bc3a9e435358e29d1ff8443035f4b366cd363e58'
# Создаем сессию
vk_session = vk_api.VkApi(token=token)
for_ans = ['привет', 'добрый вечер', 'добрый день', 'здравствуйте', 'здорова', 'здарова', 'здороу', 'hello', 'hi']
# Авторизуем токен
vk_session._auth_token()
albums = vk_session.method("photos.getAlbums")
print(albums)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question