fix: optimize send message from group with mentions

This commit is contained in:
Davidson Gomes 2023-07-14 06:40:33 -03:00
parent 1c5ae4eb4d
commit a7b05f1e85

View File

@ -389,6 +389,7 @@ export class ChatwootService {
conversationId: number, conversationId: number,
content: string, content: string,
messageType: 'incoming' | 'outgoing' | undefined, messageType: 'incoming' | 'outgoing' | undefined,
privateMessage?: boolean,
attachments?: { attachments?: {
content: unknown; content: unknown;
encoding: string; encoding: string;
@ -404,6 +405,7 @@ export class ChatwootService {
content: content, content: content,
message_type: messageType, message_type: messageType,
attachments: attachments, attachments: attachments,
private: privateMessage || false,
}, },
}); });