mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 04:39:20 +00:00
fix: ignore status and location messages
This commit is contained in:
@@ -138,6 +138,10 @@ const wbotMessageListener = () => {
|
|||||||
|
|
||||||
wbot.on("message_create", async msg => {
|
wbot.on("message_create", async msg => {
|
||||||
// console.log(msg);
|
// console.log(msg);
|
||||||
|
if (msg.from === "status@broadcast" || msg.type === "location") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let msgContact;
|
let msgContact;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user