Answer the question
In order to leave comments, you need to log in
How to install vk_api.bot_longpoll?
I am making a bot for VK using vk_api. I found the code where import is written
from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType
import vk_api
Answer the question
In order to leave comments, you need to log in
from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType
vk_session = vk_api.VkApi(token=constant.token)
vk = vk_session.get_api()
longpoll = VkBotLongPoll(vk_session, constant.group_id)
# Обработка событий ВК
for event in longpoll.listen():
# Начало беседы
if event.obj.text == 'Начать':
...
It's very good that you work in pycharm. One good thing I found is that you can install any python module on any version. You do ctrl+alt+s and
select project:<project_name>, there you select project interpreter
, double-click on the latest version of any module
using the search, you find vk_api
INSTALL VERSION 10.1 (required)
After successful installation, you can update.
I myself faced this problem, I suffered for about a month, I'm glad to help
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question