lordceaser-baileys 3.4.9 → 3.4.11
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.
|
@@ -502,7 +502,18 @@ export const makeMessagesSocket = (config) => {
|
|
|
502
502
|
content: binaryNodeContent
|
|
503
503
|
};
|
|
504
504
|
logger.debug({ msgId }, `sending newsletter message to ${jid}`);
|
|
505
|
-
|
|
505
|
+
/* CEASER-CAROUSEL-PATCH2 */
|
|
506
|
+
try{
|
|
507
|
+
const __m=message&&(message.viewOnceMessage?.message||message.viewOnceMessageV2?.message||message.viewOnceMessageV2Extension?.message||message.documentWithCaptionMessage?.message||message);
|
|
508
|
+
const __im=__m&&__m.interactiveMessage;
|
|
509
|
+
if(__im&&__im.carouselMessage){
|
|
510
|
+
if(!Array.isArray(stanza.content))stanza.content=[];
|
|
511
|
+
stanza.content=stanza.content.filter(n=>!(n&&n.tag==='biz'));
|
|
512
|
+
stanza.content.push({tag:'biz',attrs:{},content:[{tag:'interactive',attrs:{type:'native_flow',v:'1'},content:[{tag:'native_flow',attrs:{v:'9',name:'mixed'}}]}]});
|
|
513
|
+
console.log('[CEASER-CAROUSEL] biz injected');
|
|
514
|
+
}
|
|
515
|
+
}catch(e){console.log('[CEASER-CAROUSEL] error',e.message);}
|
|
516
|
+
await sendNode(stanza);
|
|
506
517
|
return;
|
|
507
518
|
}
|
|
508
519
|
// Lia@Changes 02-02-26 --- Add keepInChat, editedMessage, mediaNotifyMessage and pollUpdateMessage
|