@zetagoaurum-socket/wasocket 2.1.6 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -546,7 +546,7 @@ const makeMessagesSocket = (config) => {
|
|
|
546
546
|
logger.debug({ jid }, 'adding device identity');
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
-
if (AI
|
|
549
|
+
if (AI) {
|
|
550
550
|
const botNode = {
|
|
551
551
|
tag: 'bot',
|
|
552
552
|
attrs: {
|
|
@@ -821,7 +821,8 @@ const makeMessagesSocket = (config) => {
|
|
|
821
821
|
const paymentContent = await rahmi.handlePayment(content, quoted);
|
|
822
822
|
return await relayMessage(jid, paymentContent, {
|
|
823
823
|
messageId: Utils_1.generateMessageID(),
|
|
824
|
-
...getParticipantAttr()
|
|
824
|
+
...getParticipantAttr(),
|
|
825
|
+
AI: true
|
|
825
826
|
});
|
|
826
827
|
|
|
827
828
|
case 'PRODUCT':
|
|
@@ -829,7 +830,8 @@ const makeMessagesSocket = (config) => {
|
|
|
829
830
|
const productMsg = await Utils_1.generateWAMessageFromContent(jid, productContent, { quoted });
|
|
830
831
|
return await relayMessage(jid, productMsg.message, {
|
|
831
832
|
messageId: productMsg.key.id,
|
|
832
|
-
...getParticipantAttr()
|
|
833
|
+
...getParticipantAttr(),
|
|
834
|
+
AI: true
|
|
833
835
|
});
|
|
834
836
|
|
|
835
837
|
case 'INTERACTIVE':
|
|
@@ -837,7 +839,8 @@ const makeMessagesSocket = (config) => {
|
|
|
837
839
|
const interactiveMsg = await Utils_1.generateWAMessageFromContent(jid, interactiveContent, { quoted });
|
|
838
840
|
return await relayMessage(jid, interactiveMsg.message, {
|
|
839
841
|
messageId: interactiveMsg.key.id,
|
|
840
|
-
...getParticipantAttr()
|
|
842
|
+
...getParticipantAttr(),
|
|
843
|
+
AI: true
|
|
841
844
|
});
|
|
842
845
|
case 'ALBUM':
|
|
843
846
|
return await rahmi.handleAlbum(content, jid, quoted)
|