R
R
RqL2021-01-07 22:24:39
Python
RqL, 2021-01-07 22:24:39

Which side is wrong?

I use vk_api

authorize = vk_api.VkApi(token = token)
longpoll = VkLongPoll(authorize)

throws exception vk_api.exceptions.ApiError: [5] User authorization failed: invalid session.
VK group set up

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MinTnt, 2021-01-08
@RqL

So. If someone has a similar error:
User authorization failed: invalid session
Then you will need to try:
1. Check the keys / give all access
2. Relogin to Vkontakte

A
Alexander Klyat, 2021-01-08
@DoctorProger

It sucks to do a VK bot in python, it is better to use another language, for example, js or php. It's not that I'm against python, but the fact is that in python the bot will ping

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question