Class: Vk::API::Messages::Methods::GetHistory
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Messages::Methods::GetHistory
- Defined in:
- lib/vk/api/messages/methods/get_history.rb
Overview
Returns message history for the specified user or group chat.
Arguments collapse
-
#count ⇒ Integer
Number of messages to return.
-
#offset ⇒ Integer
Offset needed to return a specific subset of messages.
- #peer_id ⇒ Integer
-
#rev ⇒ Integer
Sort order:; '1' — return messages in chronological order.; '0' — return messages in reverse chronological order.
-
#start_message_id ⇒ Integer
Starting message ID from which to return history.
-
#user_id ⇒ String
ID of the user whose message history you want to return.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Messages::Methods::GetHistory
|
# File 'lib/vk/api/messages/methods/get_history.rb', line 15
|
Instance Method Details
#count ⇒ Integer
Returns Number of messages to return.
30 |
# File 'lib/vk/api/messages/methods/get_history.rb', line 30 attribute :count, API::Types::Coercible::Int.optional.default(20) |
#offset ⇒ Integer
Returns Offset needed to return a specific subset of messages.
28 |
# File 'lib/vk/api/messages/methods/get_history.rb', line 28 attribute :offset, API::Types::Coercible::Int.optional.default(nil) |
#peer_id ⇒ Integer
34 |
# File 'lib/vk/api/messages/methods/get_history.rb', line 34 attribute :peer_id, API::Types::Coercible::Int.optional.default(nil) |
#rev ⇒ Integer
Returns Sort order:; '1' — return messages in chronological order.; '0' — return messages in reverse chronological order.
38 |
# File 'lib/vk/api/messages/methods/get_history.rb', line 38 attribute :rev, API::Types::Coercible::Int.optional.default(nil) |