Skip to content

Option for Poll Parsing #264

@oxedom

Description

@oxedom

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions