Report a contact or chat to WhatsApp
This function allows you to report contacts for spam, inappropriate behavior, or other violations.
Available spam flow types:
Contact ID or Wid to report
Optional spam flow type (default: 'ChatInfoReport')
Optional
Optional specific message to report
Promise with report result containing reportId or error details
// Basic contact reportconst result = await WPP.contact.reportContact('5511999999999@c.us');console.log('Report ID:', result.reportId); Copy
// Basic contact reportconst result = await WPP.contact.reportContact('5511999999999@c.us');console.log('Report ID:', result.reportId);
// Report with specific typeawait WPP.contact.reportContact('5511999999999@c.us', 'ChatFmxCardSafetyToolsReportSuspicious'); Copy
// Report with specific typeawait WPP.contact.reportContact('5511999999999@c.us', 'ChatFmxCardSafetyToolsReportSuspicious');
// Report specific messageconst msg = await WPP.chat.getMessageById('msgId');await WPP.contact.reportContact('5511999999999@c.us', 'MessageMenu', msg); Copy
// Report specific messageconst msg = await WPP.chat.getMessageById('msgId');await WPP.contact.reportContact('5511999999999@c.us', 'MessageMenu', msg);
Report a contact or chat to WhatsApp
This function allows you to report contacts for spam, inappropriate behavior, or other violations.
Available spam flow types: