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

Catalog message support #168

Merged
merged 16 commits into from
Jul 25, 2023
Merged

Catalog message support #168

merged 16 commits into from
Jul 25, 2023

Conversation

Secreto31126
Copy link
Owner

@Secreto31126 Secreto31126 commented Jun 14, 2023

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time.
  • This message body should clearly illustrate what problems it solves.
  • Ideally, include a test that fails without this PR but passes with it.

Tests

  • Run the tests with npm run test and lint the project with npm run lint and npm run prettier

Added Catalog Messages support, while preserving products messages backward compatibility and hopefully make it easy to fix when v2 comes.

Btw, the code doesn't work. Seems like I wrote it too early, even before the API supports it 😄

Catalog interactive messages
Kind of

Unfortunately, WhatsApp renamed a few names related to products, and now I had to create this literal monkey patch to deal with both backwards compatibility and future proof the code
@github-actions
Copy link

github-actions bot commented Jun 14, 2023

Visit the preview URL for this PR (updated for commit 63504f9):

https://whatsappapijs--pr168-catalog-message-63ch2v51.web.app

(expires Tue, 01 Aug 2023 20:38:12 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 80a8dc4ceea5c783aae1d47b75797ee5b6c2f4be

Now it seems to work... mostly

The API sends the message, but there's an issue on the app when trying to open the catalog saying "The catalog couldn't be found"
@Secreto31126 Secreto31126 mentioned this pull request Jul 17, 2023
5 tasks
@Secreto31126 Secreto31126 merged commit 449bed6 into main Jul 25, 2023
@Secreto31126 Secreto31126 deleted the catalog-message branch July 25, 2023 20:39
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

Successfully merging this pull request may close these issues.

1 participant