Answer the question
In order to leave comments, you need to log in
How to set up a bot in VK to receive messages from conversations?
I wrote a VK bot for a group that works through a callback server. the bot receives messages in a personal and sends them there. I added it to the conversation and sent a message, the bot did not receive it. I looked at the logs in the group, it turns out that VK did not even send a post request.
What could be the problem? I did not find additional settings for conversations.
Answer the question
In order to leave comments, you need to log in
Perhaps the problem lies in the rights of the bot.
On the CallbackAPI documentation page , you can see information that:
================================================= ================================
vk = vk_api.VkApi(token=api_token)
long_poll = VkBotLongPoll(vk, group_id)
vk_api = vk.get_api()
# api_token - API token we created earlier
# group_id - id of the bot community
see what happens
for event in self .long_poll.listen():
print(event)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question