Developers » Messages
Messages
addChatUser
Adds a new user to a chat.

allowMessagesFromGroup
Allows sending messages from community to the current user.

createChat
Creates a chat with several participants.

delete
Deletes one or more messages.

deleteChatPhoto
Deletes a chat's cover picture.

deleteConversation
Deletes private messages in a conversation.

denyMessagesFromGroup
Denies sending message from community to the current user.

edit
Edits the message.

editChat
Edits the title of a chat.

getByConversationMessageId

getById
Returns messages by their IDs.

getChat
Returns information about a chat.

getChatPreview
Allows to receive chat preview by the invitation link.

getConversationMembers
Returns a list of IDs of users participating in a conversation.

getConversations
Returns a list of conversations.

getConversationsById
Returns conversations by their IDs.

getHistory
Returns message history for the specified user or group chat.

getHistoryAttachments
Returns media files from the dialog or group chat.

getImportantMessages

getInviteLink
Receives a link to invite a user to the chat.

getLastActivity
Returns a user's current status and date of last activity.

getLongPollHistory
Returns updates in user's private messages.

getLongPollServer
Returns data required for connection to a Long Poll server.

isMessagesFromGroupAllowed
Returns information whether sending messages from the community to current user is allowed.

joinChatByInviteLink
Allows to enter the chat by the invitation link.

markAsAnsweredConversation

markAsImportant
Marks and unmarks messages as important (starred).

markAsImportantConversation

markAsRead
Marks messages as read.

pin

removeChatUser
Allows the current user to leave a chat or, if the current user started the chat, allows the user to remove another user from the chat.COMMENT: (1 of 2) The English translation was not clear at all, so we tried to simplify it. Is it still technically accurate?

restore
Restores a deleted message.

search
Returns a list of the current user's private messages that match search criteria.

searchConversations
Returns a list of conversations that match search criteria.

send
Sends a message.

sendMessageEventAnswer

setActivity
Changes the status of a user as typing in a conversation.

setChatPhoto
Sets a previously-uploaded picture as the cover picture of a chat.

unpin