PreviousMessageListQuery

PreviousMessageListQuery

Query class to get previous messages. Initialize this class with groupChannel.createPreviousMessageListQuery() and openChannel.createPreviousMessageListQuery()

Members

(nullable) customTypeFilter :string

Deprecated:
  • since version v3.0.142, please use customTypesFilter instead
Default Value:
  • null
Type:
  • string

(nullable) customTypesFilter :Array.<string>

Default Value:
  • []
Type:
  • Array.<string>

hasMore :boolean

Type:
  • boolean

includeMetaArray :boolean

Default Value:
  • false
Type:
  • boolean

includeParentMessageInfo :boolean

Default Value:
  • null
Type:
  • boolean

includeParentMessageText :boolean

Deprecated:
  • since version v3.0.159, please use includeParentMessageInfo instead
Default Value:
  • null
Type:
  • boolean

includePollDetails :boolean

Default Value:
  • false
Type:
  • boolean

includeReaction :boolean

Deprecated:
  • since version v3.0.129, please use includeReactions instead
Default Value:
  • null
Type:
  • boolean

includeReactions :boolean

Default Value:
  • null
Type:
  • boolean

includeReplies :boolean

Deprecated:
  • since version v3.0.159, please use replyType instead
Default Value:
  • null
Type:
  • boolean

includeThreadInfo :boolean

Default Value:
  • false
Type:
  • boolean

isLoading :boolean

Type:
  • boolean

limit :number

Default Value:
  • 20
Type:
  • number

messageTypeFilter :number|string

Default Value:
  • null Use 0 for ALL, 1 for USER, 2 for FILE, 3 for ADMIN
See:
Type:
  • number | string

(nullable) replyType :string

Default Value:
  • null
Type:
  • string

reverse :boolean

Default Value:
  • false
Type:
  • boolean

senderUserIdsFilter :Array.<string>

Default Value:
  • []
Type:
  • Array.<string>

showSubchannelMessagesOnly :boolean

Default Value:
  • false
Type:
  • boolean

Methods

load(limit, reverse, messageTypeFilter, callbackopt) → {Promise|undefined}

Execute the query

Parameters:
Name Type Attributes Description
limit number
reverse boolean
messageTypeFilter number
callback messageListCallback <optional>
Returns:
Type
Promise | undefined

load(limit, reverse, callbackopt) → {Promise|undefined}

Execute the query

Parameters:
Name Type Attributes Description
limit number
reverse boolean
callback messageListCallback <optional>
Returns:
Type
Promise | undefined

load(callbackopt) → {Promise|undefined}

Execute the query

Parameters:
Name Type Attributes Description
callback messageListCallback <optional>
Returns:
Type
Promise | undefined