P
P
prosto_kartoshko2020-03-03 21:20:27
In contact with
prosto_kartoshko, 2020-03-03 21:20:27

What to assign to the peer_id parameter?

I want to do something like a chat bot in VK,
but the problem is that I don't understand how to make the bot a parameter to send a message.
What does the peer_id in the message.set method have to be equal to for it to work in conversations?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stockholm Syndrome, 2020-03-03
@prosto_kartoshko

For user:
user id.
For a group conversation:
2000000000 + conversation id.

For a community:
-id of the community.

A
alekssamos, 2020-03-03
@alekssamos

To whom you want to send, that is the ID.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question