messagesGet function

Returns a list of the current user's incoming or outgoing private messages

Returns a list of the current user's incoming or outgoing private messages

messagesGet( out = "", offset = "", count = "", time_offset = "", filters = "", preview_length = "", last_message_id = "", v = getAPIVersion() )

Arguments

  • out: 1 - to return outgoing messages; 0 - to return incoming messages (default)
  • offset: Offset needed to return a specific subset of messages
  • count: Number of messages to return
  • time_offset: Maximum time since a message was sent, in seconds. To return messages without a time limitation, set as 0
  • filters: Filter to apply: 1 - unread only; 2 - not from the chat; 4 - messages from friends
  • preview_length: Number of characters after which to truncate a previewed message. To preview the full message, specify 0
  • last_message_id: ID of the message received before the message that will be returned last
  • v: Version of API
  • Maintainer: Dmitriy Sorokin
  • License: GPL-3
  • Last published: 2020-09-29