import { Message, MessageParams } from './Message'; import { AttachmentPointer, Preview, Quote } from './content'; interface OpenGroup { server: string; channel: number; conversationId: string; } interface OpenGroupMessageParams extends MessageParams { group: OpenGroup; attachments: Array; preview: Array; body?: string; quote?: Quote; } export class OpenGroupMessage extends Message { public readonly group: OpenGroup; public readonly body?: string; public readonly attachments: Array; public readonly quote?: Quote; public readonly preview: Array; constructor({ timestamp, group, attachments, body, quote, identifier, preview, }: OpenGroupMessageParams) { super({ timestamp, identifier }); this.group = group; this.body = body; this.attachments = attachments; this.quote = quote; this.preview = preview; } }