whatsapp-chat-parser icon indicating copy to clipboard operation
whatsapp-chat-parser copied to clipboard

Option for Poll Parsing

Open oxedom opened this issue 1 year ago • 0 comments

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.

oxedom avatar Dec 21 '24 04:12 oxedom