Class: Vk::API::Messages::Methods::Delete

Inherits:
Schema::Method
  • Object
show all
Defined in:
lib/vk/api/messages/methods/delete.rb

Overview

Deletes one or more messages.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Messages::Methods::Delete

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :message_ids (Array)

    Message IDs.

  • :spam (Boolean)

    '1' — to mark message as spam.


# File 'lib/vk/api/messages/methods/delete.rb', line 15

Instance Method Details

#message_idsArray

Returns Message IDs.

Returns:

  • (Array)

    Message IDs.


24
# File 'lib/vk/api/messages/methods/delete.rb', line 24

attribute :message_ids, API::Types::Coercible::Array.member(API::Types::Coercible::Int).optional.default(nil)

#spamBoolean

Returns '1' — to mark message as spam.

Returns:

  • (Boolean)

    '1' — to mark message as spam.


26
# File 'lib/vk/api/messages/methods/delete.rb', line 26

attribute :spam, API::Types::Form::Bool.optional.default(nil)