Class GetHistory
java.lang.Object
api.longpoll.bots.methods.impl.VkMethod<GetHistory.ResponseBody>
api.longpoll.bots.methods.impl.messages.GetHistory
Implements messages.getHistory method.
Returns message history for the specified user or group chat.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResponse to messages.getHistory request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds URL parameter to HTTP request.protected Class<GetHistory.ResponseBody>Gets a class of VK API response.setCount(int count) setExtended(boolean extended) setGroupId(int groupId) setOffset(int offset) setPeerId(int peerId) setRev(boolean rev) setStartMessageId(int startMessageId) setUserId(int userId) Methods inherited from class api.longpoll.bots.methods.impl.VkMethod
execute, executeAsync, newRequestBody, setLang
-
Constructor Details
-
GetHistory
-
-
Method Details
-
getResponseClass
Description copied from class:VkMethodGets a class of VK API response. This value is used during deserialization of received JSON.- Specified by:
getResponseClassin classVkMethod<GetHistory.ResponseBody>- Returns:
- a class of VK API response.
-
setOffset
-
setCount
-
setUserId
-
setPeerId
-
setStartMessageId
-
setRev
-
setExtended
-
setFields
-
setFields
-
setGroupId
-
addParam
Description copied from class:VkMethodAdds URL parameter to HTTP request.- Overrides:
addParamin classVkMethod<GetHistory.ResponseBody>- Parameters:
key- URL parameter key.value- URL parameter value.- Returns:
- current instance.
-