Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This library doesn't support buttons #5

Open
Tameflame opened this issue Feb 8, 2024 · 2 comments
Open

This library doesn't support buttons #5

Tameflame opened this issue Feb 8, 2024 · 2 comments
Assignees

Comments

@Tameflame
Copy link

https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages#interactive-messages

Components which are buttons require an "index" property, which your library doesn't have. In your library, components have component_type, sub_type, and parameteres.

@sajuthankappan
Copy link
Owner

Thanks for reporting the issue. I'll try to add this feature in the next release.

@sajuthankappan
Copy link
Owner

v0.5.0 is published to add index attribute. Please check and let me know if this helps.

Changelog for v0.5.0

### Added

- index attribute for Component, specifically meant for buttons
- for_button function for Component

### Changed

- **Breaking:** component_type and sub_types of Component are now enums
- **Breaking:** parameter_type of Paramter is now enum

@sajuthankappan sajuthankappan self-assigned this Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants