1- import { AbstractTextMessage } from '../AbstractTextMessage.js ' ;
2- import { WhatsAppTextParams , WhatsAppContext } from '../../types/index.js ' ;
3- import { Channels } from '../../enums/index.js ' ;
1+ import { AbstractTextMessage } from '../AbstractTextMessage' ;
2+ import { WhatsAppTextParams , WhatsAppContext } from '../../types/' ;
3+ import { Channels } from '../../enums/' ;
44
55/**
66 * Represents a text message for WhatsApp.
@@ -15,7 +15,21 @@ export class WhatsAppText
1515 */
1616 public channel : Channels . WHATSAPP = Channels . WHATSAPP ;
1717
18+ /**
19+ * A context used for quoting/replying/reacting to a specific message in a
20+ * conversation. When used for quoting or replying, the WhatsApp UI will
21+ * display the new message along with a contextual bubble that displays the
22+ * quoted/replied to message's content. When used for reacting the WhatsApp
23+ * UI will display the reaction emoji below the reacted to message.
24+ */
1825 public context ?: WhatsAppContext ;
26+
27+ /**
28+ * Send via MM Lite API only this is valid for marketing template messages
29+ * only, and for Alpha release only
30+ */
31+ public category ?: string ;
32+
1933 /**
2034 * Send a WhatsApp text message.
2135 *
@@ -39,5 +53,6 @@ export class WhatsAppText
3953 if ( params . context ) {
4054 this . context = params . context ;
4155 }
56+ this . category = params . category ;
4257 }
4358}
0 commit comments