Developers » API methods » Board » board.createComment
Adds a comment on a topic on a community's discussion board.
This method can be called with a user token received in Standalone-app via Implicit Flow. Access rights required: groups.
group_idID of the community that owns the discussion board.
positive number, required parameter
topic_idID of the topic to be commented on.
positive number, required parameter
messageText of the comment.

Required if attachments is not set.
attachmentsList of media objects attached to the topic, in the following format:

<type> type of media object:
  • photo photo;
  • video video;
  • audio audio;
  • doc document.

<owner_id> ID of the media owner.
<media_id> Media ID.


Required if text is not set.
list of comma-separated words
from_group1 to post the comment as by the community;
0 to post the comment as by the user (by default).
flag, either 1 or 0
sticker_idSticker ID.
positive number
guidRandom value to avoid resending one comment.
Returns the ID of the created comment .
Global errors can occur while running. See their descriptions on this page.