D
D
Dmitry2022-03-24 09:32:53
In contact with
Dmitry, 2022-03-24 09:32:53

How to make the bot reply in a community conversation?

Hello! I'm making my VK bot on Node JS. I want to make it so that the bot can be added to the conversation and that he answers there. But for now, he only responds to private messages.

How can I implement the work of a bot in a community conversation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DeFaNJI, 2022-03-24
@Fel5code

Try these points:
1) Check if the bot has administrator rights in the conversation (namely, administrator rights, not view messages)
2) Do you have conditions for the type: 3) Check the group settings, whether it is allowed to add a bot to the conversation, are enabled whether the possibilities of bots
if (!msg.isChat) return

P
Puma Thailand, 2022-03-24
@opium

So you enter into a conversation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question