Class: Vk::API::Messages::Methods::MarkAsRead
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Messages::Methods::MarkAsRead
- Defined in:
- lib/vk/api/messages/methods/mark_as_read.rb
Overview
Marks messages as read.
Arguments collapse
-
#message_ids ⇒ Array
IDs of messages to mark as read.
-
#peer_id ⇒ String
Destination ID.; ; "For user:; 'User ID', e.g.
-
#start_message_id ⇒ Integer
Message ID to start from.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Messages::Methods::MarkAsRead
|
# File 'lib/vk/api/messages/methods/mark_as_read.rb', line 15
|
Instance Method Details
#message_ids ⇒ Array
Returns IDs of messages to mark as read.
25 |
# File 'lib/vk/api/messages/methods/mark_as_read.rb', line 25 attribute :message_ids, API::Types::Coercible::Array.member(API::Types::Coercible::Int).optional.default(nil) |
#peer_id ⇒ String
Returns Destination ID.; ; "For user:; 'User ID', e.g. '12345'.; ; For chat:; '2000000000' + 'chat_id', e.g. '2000000001'.; ; For community:; '- community ID', e.g. '-12345'.; ".
27 |
# File 'lib/vk/api/messages/methods/mark_as_read.rb', line 27 attribute :peer_id, API::Types::Coercible::String.optional.default(nil) |