M
M
maqstein2019-01-14 05:44:46
Python
maqstein, 2019-01-14 05:44:46

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

2 answer(s)
S
sudo rm -rf /, 2019-01-14
@maqstein

Perhaps the problem lies in the rights of the bot.
On the CallbackAPI documentation page , you can see information that:
================================================= ================================
5c3bfe0ae0e83409804583.png

I
Ilya Evseenko, 2019-01-20
@TotalCommander

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 question

Ask a Question

731 491 924 answers to any question