wall

wall.createComment

The translation was generated automatically and may contain mistakes

Adds a comment to the recording on the wall.

To call this method, you can use:
• user access token obtained in the standalone app through Implicit Flow (access right required: wall — this is issued in exceptional cases by a request to support at devsupport@corp.vk.com)

Parameters

owner_id

integer

Identifier of the user or community on whose wall there is a record to which a comment should be added.

Note the community ID in the parameter owner_id It is necessary to indicate the sign "-" - for example, owner_id = -1 corresponds to the community identifier VKontakte API (club1)

post_id

positive

The record ID on the wall.

Required parameter

from_group

checkbox

The community ID on whose behalf the comment is published. By default: 0 .

message

text

Text of the commentary. Mandatory parameter if no parameter is passed attachments .

reply_to_comment

integer

A comment ID in which a new comment is to be added.

attachments

string

List of objects attached to the comment and separated by the symbol ",". Field attachments It is presented in the format:

<type><owner_id>_<media_id>,<type><owner_id>_<media_id>

<type> Type of media investment:

  • photo - photo;
  • video - video recording;
  • audio - audio recording;
  • doc - a document.

<owner_id> — ID of the owner of the media investment. <media_id> media attachment identifier.

For example:

photo100172_166443618,photo66748_265827614

A parameter is mandatory if no parameter is set message .

sticker_id

positive

Sticker ID.

guid

string

A unique identifier designed to prevent the same comment from being sent again.

Result

After successful execution, it returns the added comment ID in the field comment_id ( integer ) and the array of parental comment identifiers in the parent_stack ( array ).

Error codes

212
Access to post comments denied
213
Access to status replies denied
222
Hyperlinks are forbidden
223
Too many replies
13000
Content upload was denied due to active community strikes

Common errors may occur during execution

Linked versions

Go to API versions page
  • In method wall.createComment Added a new parameter from_group . It allows you to specify the community ID on whose behalf the comment will be published.

  • Method messages.getChat does not add to returned objects chat The field users if it is empty.