Class: Vk::API::Messages::Methods::GetDialogs
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Messages::Methods::GetDialogs
- Defined in:
- lib/vk/api/messages/methods/get_dialogs.rb
Overview
Returns a list of the current user's conversations.
Arguments collapse
-
#count ⇒ Integer
Number of messages to return.
-
#offset ⇒ Integer
Offset needed to return a specific subset of messages.
-
#preview_length ⇒ Integer
Number of characters after which to truncate a previewed message.
-
#start_message_id ⇒ Integer
ID of the message from what to return dialogs.
-
#unread ⇒ Boolean
'1' — return unread messages only.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Messages::Methods::GetDialogs
|
|
# File 'lib/vk/api/messages/methods/get_dialogs.rb', line 15
|
Instance Method Details
#count ⇒ Integer
Returns Number of messages to return.
29 |
# File 'lib/vk/api/messages/methods/get_dialogs.rb', line 29 attribute :count, API::Types::Coercible::Int.optional.default(20) |
#offset ⇒ Integer
Returns Offset needed to return a specific subset of messages.
27 |
# File 'lib/vk/api/messages/methods/get_dialogs.rb', line 27 attribute :offset, API::Types::Coercible::Int.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.".
33 |
# File 'lib/vk/api/messages/methods/get_dialogs.rb', line 33 attribute :preview_length, API::Types::Coercible::Int.optional.default(nil) |
#start_message_id ⇒ Integer
Returns ID of the message from what to return dialogs.
31 |
# File 'lib/vk/api/messages/methods/get_dialogs.rb', line 31 attribute :start_message_id, API::Types::Coercible::Int.optional.default(nil) |
#unread ⇒ Boolean
Returns '1' — return unread messages only.
35 |
# File 'lib/vk/api/messages/methods/get_dialogs.rb', line 35 attribute :unread, API::Types::Form::Bool.optional.default(nil) |