Vk-node-bot-api. How to send a message when inviting a bot to a conversation?
-
I have seen such a thing in many bots before.
I wanted to do the same, digging up the entire Internet - I did not find a solution. Please explain how to do it) I would be very grateful.JavaScript Hunter Waters, Jul 17, 2020 -
listen to the long poll and see when the message_new event type will be, then make a condition, if 'action' is in event.object, well then see that event.object.action.type is equal to chat_invite_user and event.object.action.member_id is is equal to -id of your BotAnonymous
1 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!