spam_list IQ stanzas.
Access
Send a spam report directly through the client:send_spam_report
SpamReportRequest
required
The spam report request containing message details, sender info, and the report flow type.
SpamReportResult
Contains an optional
report_id returned by the server.When
from_jid is set, send_spam_report automatically looks up and attaches that contact’s TC token to the IQ, gated behind the enable_spam_report_iq_with_privacy_token AB prop. This matches WhatsApp Web’s OutSpamTCTokenMixin and lets the report be accepted for privacy-restricted accounts. No caller action is needed — see TC Token.Group spam report
Types
SpamReportRequest
SpamFlow
The context from which the spam report was triggered.SpamReportResult
Error handling
The method returnsResult<SpamReportResult, IqError>. Common errors include network failures and server-side rejections.
See also
- Client API - Core client methods
- Blocking - Block and unblock contacts