Home > borogove > Chat > (constructor)
Chat.(constructor)
Constructs a new instance of the Chat class
Signature:
protected constructor(client: borogove.Client, stream: borogove.GenericStream, persistence: borogove.Persistence, chatId: string, uiState?: enums.UiState, isBlocked?: boolean, extensions?: borogove.Stanza | null, readUpToId?: string | null, readUpToBy?: string | null, omemoContactDeviceIDs?: number[] | null);
Parameters
| Parameter | Type | Description |
|---|---|---|
| client | borogove.Client | |
| stream | borogove.GenericStream | |
| persistence | borogove.Persistence | |
| chatId | string | |
| uiState | enums.UiState | (Optional) |
| isBlocked | boolean | (Optional) |
| extensions | borogove.Stanza | null | (Optional) |
| readUpToId | string | null | (Optional) |
| readUpToBy | string | null | (Optional) |
| omemoContactDeviceIDs | number[] | null | (Optional) |