Sends a message.
messagesSend(
user_id,
random_id = "",
peer_id = "",
domain = "",
chat_id = "",
user_ids = "",
message = "",
lat = "",
long = "",
attachment = "",
forward_messages = "",
sticker_id = "",
v = getAPIVersion()
)
User ID (by default <U+2014> current user).
Unique identifier to avoid resending the message.
Destination ID.
User's short address (for example, illarionov).
ID of conversation the message will relate to.
IDs of message recipients (if new conversation shall be started).
Text of the message (required if attachments is not set).
Geographical latitude of a check-in, in degrees (from -90 to 90).
Geographical longitude of a check-in, in degrees (from -180 to 180).
List of objects attached to the message, separated by commas, in the following format: <type><owner_id>_<media_id>
<type> <U+2014> Type of media attachment:
photo - photo
video - video
audio - audio
doc - document
wall - wall post
<owner_id> <U+2014> ID of the media attachment owner.
<media_id> <U+2014> media attachment ID.
ID of forwarded messages, separated with a comma. Listed messages of the sender will be shown in the message body at the recipient's.
Sticker id.
Version of API.