Home > borogove > Chat > getMessagesAfter
Chat.getMessagesAfter() method
Fetch a page of messages after some point
Signature:
getMessagesAfter(afterId: string | null, afterTime: string | null): Promise<borogove markdown="1".ChatMessage[]>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| afterId | string | null | id of the message to look after |
| afterTime | string | null | timestamp of the message to look after, String in format YYYY-MM-DDThh:mm:ss[.sss]+00:00 |
Returns:
Promise<borogove.ChatMessage[]>
Promise resolving to an array of ChatMessage that are found