# frozen_string_literal: true require 'vk/api/methods' module Vk module API class Photos < Vk::Schema::Namespace module Methods # Edits a comment on a photo. class EditComment < Schema::Method # @!group Properties self.open = false self.method = 'photos.editComment' # @method initialize(arguments) # @param [Hash] arguments # @option arguments [Integer] :owner_id ID of the user or community that owns the photo. # @option arguments [Integer] :comment_id Comment ID. # @option arguments [String] :message New text of the comment. # @option arguments [Array] :attachments (Required if 'message' is not set.) List of objects attached to the post, in the following format:; "_,_"; '' — Type of media attachment:; 'photo' — photo; 'video' — video; 'audio' — audio; 'doc' — document; '' — Media attachment owner ID.; '' — Media attachment ID.; ; Example:; "photo100172_166443618,photo66748_265827614" # @return [Photos::Methods::EditComment] # @!group Arguments # @return [Integer] ID of the user or community that owns the photo. attribute :owner_id, API::Types::Coercible::Int.optional # @return [Integer] Comment ID. attribute :comment_id, API::Types::Coercible::Int.optional # @return [String] New text of the comment. attribute :message, API::Types::Coercible::String.optional # @return [Array] (Required if 'message' is not set.) List of objects attached to the post, in the following format:; "_,_"; '' — Type of media attachment:; 'photo' — photo; 'video' — video; 'audio' — audio; 'doc' — document; '' — Media attachment owner ID.; '' — Media attachment ID.; ; Example:; "photo100172_166443618,photo66748_265827614" attribute :attachments, API::Types::Coercible::Array.optional end end end end end