A
A
aleksandra_usatova2020-04-28 20:52:39
In contact with
aleksandra_usatova, 2020-04-28 20:52:39

How to make it send a message when adding a bot to a VK conversation?

I am creating a bot for VKontakte conversations
. It is necessary that when a bot is added to a conversation, it sends a characteristic message (Hello everyone!)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Lee, 2020-04-29
@appliks

1) When adding a bot, an array should come (Callback or Longpoll, no difference), a request for the type of a new message, you can find out about it ( object - action - type = chat_invite_user ).
2) After receiving such a request, send a message using the messages.send method .
Here in C#

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question