whatsapp-chat-parser
whatsapp-chat-parser copied to clipboard
Option for Poll Parsing
Description
Enhance the library's parsing capabilities by adding an additional option to ParseStringOptions that applies parsePollMessage to all poll messages.
Suggested Implementation
Add a new parameter to ParseStringOptions that, when enabled, applies the parsePollMessage logic to every detected poll message. This can be implemented by using a regular expression to identify messages of the POLL type.
Here's the relevant section of the code for context:
Poll Parser Utility
This will also require changes in the type that whatsapp.parseString() returns.