Class: Vk::API::Board::Methods::CreateComment
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Board::Methods::CreateComment
- Defined in:
- lib/vk/api/board/methods/create_comment.rb
Overview
Adds a comment on a topic on a community's discussion board.
Arguments collapse
-
#attachments ⇒ Array
(Required if 'text' is not set.) List of media objects attached to the comment, in the following format:; "
, "; '' — Type of media object:; 'photo' — photo; 'video' — video; 'audio' — audio; 'doc' — document; ' ' — ID of the media owner. -
#from_group ⇒ Boolean
'1' — to post the comment as by the community; '0' — to post the comment as by the user (default).
-
#group_id ⇒ Integer
ID of the community that owns the discussion board.
-
#guid ⇒ String
Unique identifier to avoid repeated comments.
-
#message ⇒ String
(Required if 'attachments' is not set.) Text of the comment.
-
#sticker_id ⇒ Integer
Sticker ID.
-
#topic_id ⇒ Integer
ID of the topic to be commented on.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Board::Methods::CreateComment
|
# File 'lib/vk/api/board/methods/create_comment.rb', line 15
|
Instance Method Details
#attachments ⇒ Array
Returns (Required if 'text' is not set.) List of media objects attached to the comment, in the following format:; "
35 |
# File 'lib/vk/api/board/methods/create_comment.rb', line 35 attribute :attachments, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#from_group ⇒ Boolean
Returns '1' — to post the comment as by the community; '0' — to post the comment as by the user (default).
37 |
# File 'lib/vk/api/board/methods/create_comment.rb', line 37 attribute :from_group, API::Types::Form::Bool.optional.default(nil) |
#group_id ⇒ Integer
Returns ID of the community that owns the discussion board.
29 |
# File 'lib/vk/api/board/methods/create_comment.rb', line 29 attribute :group_id, API::Types::Coercible::Int |
#guid ⇒ String
Returns Unique identifier to avoid repeated comments.
41 |
# File 'lib/vk/api/board/methods/create_comment.rb', line 41 attribute :guid, API::Types::Coercible::String.optional.default(nil) |
#message ⇒ String
Returns (Required if 'attachments' is not set.) Text of the comment.
33 |
# File 'lib/vk/api/board/methods/create_comment.rb', line 33 attribute :message, API::Types::Coercible::String.optional.default(nil) |