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.
Description
Enhance the library's parsing capabilities by adding an additional option to
ParseStringOptionsthat appliesparsePollMessageto all poll messages.Suggested Implementation
Add a new parameter to
ParseStringOptionsthat, when enabled, applies theparsePollMessagelogic 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.