Home > borogove > Chat > getMessagesBefore

Chat.getMessagesBefore() method

Fetch a page of messages before some point

Signature:

getMessagesBefore(beforeId: string | null, beforeTime: string | null): Promise<borogove markdown="1".ChatMessage[]>;

Parameters

Parameter Type Description
beforeId string | null id of the message to look before
beforeTime string | null timestamp of the message to look before, 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