[core] WEBJS - send text status

This commit is contained in:
devlikepro committed 2025-12-17 16:15:37 +07:00
1 parent 8fc5658e9d
commit 89dd3aa9e1
1 file changed
+11 -1
+11 -1
View File
@@ -172,6 +172,7 @@ import {
} from '@waha/core/utils/jids';
import { Activity } from '@waha/core/abc/activity';
import { CallData } from '@waha/structures/calls.dto';
import { Jid } from '@waha/core/engines/const';
export interface WebJSConfig {
webVersion?: string;
@@ -1532,7 +1533,16 @@ export class WhatsappSessionWebJSCore extends WhatsappSession {
@Activity()
public sendTextStatus(status: TextStatus) {
this.checkStatusRequest(status);
return this.whatsapp.sendTextStatus(status);
const extra: any = {};
if (status.font != null) {
extra.fontStyle = status.font;
}
if (status.backgroundColor != null) {
extra.backgroundColor = status.backgroundColor;
}
const options = { extra: extra, linkPreview: status.linkPreview };
return this.whatsapp.sendMessage(Jid.BROADCAST, status.text, options);
}
/**