Merge pull request #22 from esteves67/master

Ignore Empty Messages - Issue #18
This commit is contained in:
Cassio Santos
2020-09-15 05:56:14 -03:00
committed by GitHub

View File

@@ -146,6 +146,8 @@ const wbotMessageListener = whatsapp => {
msg.from === "status@broadcast" ||
msg.type === "location" ||
msg.type === "call_log" ||
msg.type === "e2e_notification" || // Ignore Empty Messages Generated When Someone Changes His Account from Personal to Business or vice-versa
msg.type === "notification_template" || // Ignore Empty Messages Generated When Someone Changes His Account from Personal to Business or vice-versa
msg.author != null // Ignore Group Messages
) {
return;