|
|
|
@ -7,7 +7,7 @@ const {
|
|
|
|
|
makeInMemoryStore,
|
|
|
|
|
useMultiFileAuthState,
|
|
|
|
|
downloadMediaMessage,
|
|
|
|
|
isJidUser, isJidGroup, isJidBroadcast
|
|
|
|
|
isJidUser, isJidGroup, isJidBroadcast, isJidStatusBroadcast
|
|
|
|
|
} = require('@whiskeysockets/baileys');
|
|
|
|
|
const fs = require('fs');
|
|
|
|
|
const path = require('path');
|
|
|
|
@ -78,6 +78,8 @@ const createWhatsApp = async phone => {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isJidStatusBroadcast(msg.key.remoteJid)) continue;
|
|
|
|
|
|
|
|
|
|
const messageType = Object.keys(msg.message)[0];
|
|
|
|
|
// 如果是群发(status@broadcast),participant 是发送人,不然则是 remoteJid
|
|
|
|
|
const remoteNo = isJidBroadcast(msg.key.remoteJid) ? decodeJid(msg.key.participant) : decodeJid(msg.key.remoteJid);
|
|
|
|
|