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
| Name | Description |
|---|---|
| archived - Boolean | |
| direction - QueryDirection | |
| limit - Int! | |
| messageId - String | Return chats having their latest message before or after a certain other message. Takes precedence over `timestamp`. |
| timestamp - Int | Return 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!