Answer the question
In order to leave comments, you need to log in
Why doesn't the VK bot on python3.6 see messages from conversations?
I just started learning programming, I wrote the simplest bot for VK working on longpoll. It should receive new messages and display them on the screen. Everything works fine in the LAN, but he does not receive messages from the conversation. What is the problem? Here is the code:
import vk_api
from vk_api.longpoll import VkLongPoll,VkEventType
token ="токен"
vk = vk_api.VkApi(token = token)
longpoll=VkLongPoll(vk)
print('+++')
while True:
for event in longpoll.listen():
if event.type ==VkEventType.MESSAGE_NEW:
print('Текст сообщения:' +str(event.text))
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