Skip to main content

chats

Description

Get chats before or after a given message or timestamp. messageId takes precedence and if provided, timestamp will be ignored.


Response

Returns a ChatList


Arguments

NameDescription
archived - Boolean
direction - QueryDirection
limit - Int!
messageId - StringReturn chats having their latest message before or after a certain other message. Takes precedence over `timestamp`.
timestamp - IntReturn chats having their latest message before or after a certain time. `timestamp` will be ignored if `messageId` is provided.

chats(
archived: Boolean
direction: QueryDirection
limit: Int!
messageId: String
timestamp: Int
): ChatList!