Quoting Messages
Reply to any message with a quote (works with all message types):quoted option is part of MiscMessageGenerationOptions and works with all message types.
Quoting Different Message Types
Getting Messages to Quote
You need aWAMessage object to quote:
-
From events:
-
From store:
-
From sent messages:
Forwarding Messages
Forward messages to other chats with WhatsApp’s native forward feature:Forward with Force
Force forward even if the message is not forwardable:Type Signature
Fromsrc/Types/Message.ts:273-276:
Quote vs Forward
- Quote (Reply)
- Forward
Use when: You want to reply to a specific message in a conversationHow it looks: Shows the original message above your replyExample:Result: Your message appears as a reply with the original message quoted above it.
Advanced Quoting
Quote with Mentions
Mention users when quoting:Quote Media Messages
When quoting media messages, the thumbnail is automatically included:Message Options Reference
Fromsrc/Types/Message.ts:309-326:
Complete Example
Here’s a complete example showing quoting and forwarding:Context Info in Quotes
When you quote a message, WhatsApp automatically includes the original message’s context. You can also add additional context:Related
- Text Messages - Send basic text messages
- Message Types - All available message content types
- Data Store - Implement message storage for forwarding