Console
Friends

Send Chat Message

Send a message to a friend. Conversations are capped at 50 messages — the oldest message is removed automatically when the limit is exceeded.

POST /api/vaneltonid/chat_send.php
Requires Authorization: AppID:AppKey + user token

Request body

FieldTypeRequiredDescription
tokenstringrequiredSender's session token
friend_idintrequiredID of the recipient friend
messagestringrequiredMessage text (max 2000 characters)

Success response 200

{
  "success": true,
  "message_id": 501,
  "server_time": "2026-05-29 14:35:00"
}

Store the server_time from the response — use it as the since parameter on the next chat_poll call for accurate incremental fetching.

Errors

CodeMessageCause
403You can only chat with friends.Not a confirmed friend
400Message exceeds 2000 characters.Text too long