wall.createComment
The translation was generated automatically and may contain mistakes
Adds a comment to the recording on the wall.
Parameters
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_idIt is necessary to indicate the sign "-" - for example,owner_id=-1corresponds to the community identifier VKontakte API (club1)
positive
The record ID on the wall.
Required parameter
checkbox
The community ID on whose behalf the comment is published. By default: 0 .
text
Text of the commentary. Mandatory parameter if no parameter is passed attachments .
integer
A comment ID in which a new comment is to be added.
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 .
positive
Sticker ID.
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
Common errors may occur during execution