Home > borogove > Chat > getMessagesAround

Chat.getMessagesAround() method

Fetch a page of messages around (before, including, and after) some point

Signature:

getMessagesAround(aroundId: string | null, aroundTime: string | null): Promise<borogove markdown="1".ChatMessage[]>;

Parameters

Parameter Type Description
aroundId string | null id of the message to look around
aroundTime string | null timestamp of the message to look around, 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