sooluh / adonisjs-whatsapp

:speech_balloon: Connect your WhatsApp Cloud API with AdonisJS.
https://www.npmjs.com/package/adonisjs-whatsapp
MIT License
24 stars 1 forks source link

Support for v17.0 SDK #3

Open darshithedpara opened 10 months ago

darshithedpara commented 10 months ago

I tried with v17.0 but I guess it's not working properly

Template message is working not TextMessage is not working.

sooluh commented 10 months ago

When I kicked off this package, I began with v15 and it held up solidly through v16 – that's the most stable point. I'm gearing up for v17 ASAP, or you can chip in by sending a pull request to keep this package rolling. In the meantime, roll with v16 if you can. Thanks!

Edit

BTW, is there any error message that appears when sending the text message and it's not working? Is it only the text message that is not working? How about the others besides text messages and template messages? Could you please help me understand your issue?

darshithedpara commented 10 months ago

Thanks for the quick reply @sooluh,

Plain Text messages are not giving any error but I am not receiving the actual message on WhatsApp, but When I tried a template message for that I had to change the SDK version to 17.0.

Btw this is a very cool package, Thank you once again :raised_hands:

sooluh commented 4 months ago

Sorry for taking too long to respond back, I just realized that plaintext messages, images, etc., cannot be received by the client (as we agreed, the client is the person interacting with our WhatsApp Business API) if the client does not send a message first (I forgot where Meta explained this). So basically, the 24-hour conversation session can only be initiated by a template message (via API) or a message sent by the client. And furthermore, once the session is initiated by either party, plaintext, images, etc., can be sent to the client.

As for version changes, I only modify it in the config file, and it works for v17 and v18. I'm currently developing this package for Adonis v6, stay tuned.