Class: Vk::API::Messages::Methods::Get
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Messages::Methods::Get
- Defined in:
- lib/vk/api/messages/methods/get.rb
Overview
Returns a list of the current user's incoming or outgoing private messages.
Arguments collapse
-
#count ⇒ Integer
Number of messages to return.
-
#last_message_id ⇒ Integer
ID of the message received before the message that will be returned last (provided that no more than 'count' messages were received before it; otherwise 'offset' parameter shall be used).
-
#offset ⇒ Integer
Offset needed to return a specific subset of messages.
-
#out ⇒ Boolean
'1' — to return outgoing messages; '0' — to return incoming messages (default).
-
#preview_length ⇒ Integer
Number of characters after which to truncate a previewed message.
-
#time_offset ⇒ Integer
Maximum time since a message was sent, in seconds.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Messages::Methods::Get constructor
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Messages::Methods::Get
|
# File 'lib/vk/api/messages/methods/get.rb', line 15
|
Instance Method Details
#count ⇒ Integer
Returns Number of messages to return.
32 |
# File 'lib/vk/api/messages/methods/get.rb', line 32 attribute :count, API::Types::Coercible::Int.optional.default(20) |
#last_message_id ⇒ Integer
Returns ID of the message received before the message that will be returned last (provided that no more than 'count' messages were received before it; otherwise 'offset' parameter shall be used).
38 |
# File 'lib/vk/api/messages/methods/get.rb', line 38 attribute :last_message_id, API::Types::Coercible::Int.optional.default(nil) |
#offset ⇒ Integer
Returns Offset needed to return a specific subset of messages.
30 |
# File 'lib/vk/api/messages/methods/get.rb', line 30 attribute :offset, API::Types::Coercible::Int.optional.default(nil) |
#out ⇒ Boolean
Returns '1' — to return outgoing messages; '0' — to return incoming messages (default).
28 |
# File 'lib/vk/api/messages/methods/get.rb', line 28 attribute :out, API::Types::Form::Bool.optional.default(nil) |
#preview_length ⇒ Integer
Returns Number of characters after which to truncate a previewed message. To preview the full message, specify '0'.; "NOTE: Messages are not truncated by default. Messages are truncated by words.".
36 |
# File 'lib/vk/api/messages/methods/get.rb', line 36 attribute :preview_length, API::Types::Coercible::Int.optional.default(nil) |