Home > borogove > persistence > Sqlite > getMessage
persistence.Sqlite.getMessage() method
Get a single message
Signature:
getMessage(accountId: string, chatId: string, serverId: string | null, localId: string | null): Promise<borogove markdown="1"_ChatMessage | null>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| accountId | string | the account the message was sent or received on |
| chatId | string | the chat the message was sent or received on |
| serverId | string | null | the serverId of the message (optional if localId is specified) |
| localId | string | null | the localId of the message (optional if serverId is specified) |
Returns:
Promise<borogove_ChatMessage | null>
Promise resolving to the message or null