vk_api.exceptions.ApiError: [5] User authorization failed: method is unavailable with group auth.
import requests
import vk_api
from vk_api.longpoll import VkLongPoll,VkEventType
def answer(user_id, messege):
vk_session.method('message.send',{'user.id':user_id,'message':messege})
#Токен там нормальный
vk_session = vk_api.VkApi(token='1')
longpool= VkLongPoll(vk_session)
for event in longpool.listen():
if event.type==VkEventType.MESSAGE_NEW:
if event.to_me:
request=event.text
if request=="Привет":
answer(event.user_id, "Дороу ")