VK Community icon

VK Community

Interact with VK (VKontakte) API

Message → Send

AI-generated

Summary

Send a message to a specified VK destination by providing the destination peer ID and the message text, optionally including attachments, a keyboard, or disabling link preview parsing.

Inputs

  • Peer ID (required) — Numeric ID of the message recipient: can be a user ID, a chat ID (2000000000 + chat_id), or a community ID.
  • Message Text (required) — Text content of the message to send.
  • Attachment — Optional attachment string(s), such as "photo123_456" or multiple comma-separated attachments.
  • Keyboard (JSON) — Optional JSON-encoded keyboard object to include inline or reply buttons.
  • Don't Parse Links — Optional boolean to disable automatic link snippet generation and parsing in the message.

Output shape

a JSON object per input item containing the sent message's ID, e.g. { "message_id": number }

One output item is produced per input item; errors are reported per-item if 'continue on fail' is enabled, otherwise execution stops on error.

Examples

Example 1: Send a simple text message

Set Peer ID to the recipient's ID, enter your message in Message Text, leave Additional Fields empty.

Example 2: Send a message with a photo attachment and inline keyboard

Set Peer ID and Message Text, in Additional Fields set Attachment to the photo identifier and Keyboard with JSON defining buttons.

Links

Discussion