Class: Vk::API::Wall::Methods::CreateComment
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Wall::Methods::CreateComment
- Defined in:
- lib/vk/api/wall/methods/create_comment.rb
Overview
Adds a comment to a post on a user wall or community wall.
Arguments collapse
-
#attachments ⇒ Array
(Required if 'message' is not set.) List of media objects attached to the comment, in the following format:; "
, "; '' — Type of media ojbect:; 'photo' — photo; 'video' — video; 'audio' — audio; 'doc' — document; ' ' — ID of the media owner.; ' ' — Media ID. -
#from_group ⇒ Boolean
'1' — to post the comment as from the community;; '0' — (default) to post the comment as from the user.
-
#guid ⇒ String
Unique identifier to avoid repeated comments.
-
#message ⇒ String
(Required if 'attachments' is not set.) Text of the comment.
-
#owner_id ⇒ Integer
User ID or community ID.
-
#post_id ⇒ Integer
Post ID.
-
#reply_to_comment ⇒ Integer
ID of comment to reply.
-
#sticker_id ⇒ Integer
Sticker ID.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Wall::Methods::CreateComment
|
# File 'lib/vk/api/wall/methods/create_comment.rb', line 15
|
Instance Method Details
#attachments ⇒ Array
Returns (Required if 'message' is not set.) List of media objects attached to the comment, in the following format:; "
40 |
# File 'lib/vk/api/wall/methods/create_comment.rb', line 40 attribute :attachments, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#from_group ⇒ Boolean
Returns '1' — to post the comment as from the community;; '0' — (default) to post the comment as from the user.
34 |
# File 'lib/vk/api/wall/methods/create_comment.rb', line 34 attribute :from_group, API::Types::Form::Bool.optional.default(nil) |
#guid ⇒ String
Returns Unique identifier to avoid repeated comments.
44 |
# File 'lib/vk/api/wall/methods/create_comment.rb', line 44 attribute :guid, API::Types::Coercible::String.optional.default(nil) |
#message ⇒ String
Returns (Required if 'attachments' is not set.) Text of the comment.
36 |
# File 'lib/vk/api/wall/methods/create_comment.rb', line 36 attribute :message, API::Types::Coercible::String.optional.default(nil) |
#owner_id ⇒ Integer
Returns User ID or community ID. Use a negative value to designate a community ID.
30 |
# File 'lib/vk/api/wall/methods/create_comment.rb', line 30 attribute :owner_id, API::Types::Coercible::Int.optional.default(nil) |
#post_id ⇒ Integer
Returns Post ID.
32 |
# File 'lib/vk/api/wall/methods/create_comment.rb', line 32 attribute :post_id, API::Types::Coercible::Int |