Reply as the community
vk_messages_sendSend a VK community message to a user, with optional reply and attachment, and get the new message_id. Only recipients who contacted the community or permitted messages can receive it.
Instructions
Send a message from your community to a person. VK only delivers to people who have written to the community or allowed it to message them. This reaches a real person: show the user the text before sending. Returns the new message_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Message text | |
| peer_id | Yes | User ID of the recipient | |
| reply_to | No | Optional ID of the message this answers, to quote it | |
| attachment | No | Optional media, e.g. photo-1_2 or doc-1_2, comma-separated |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | ID of the sent message |