rohit-chouhan / whatsapp

A package for whatsapp business api, send messages, product, media, location through flutter app.
https://pub.dev/packages/whatsapp
MIT License
25 stars 18 forks source link

Add "components" field for making the templates more useful in production environments #7

Closed nabilpatel4012 closed 1 year ago

nabilpatel4012 commented 2 years ago

Adding Components field will make the "messagesTemplate" function more useful.

I have modified the definition of the "messagesTemplate" a bit for my use case and realised that It will be useful for many people out there for integrating WhatsApp api more efficiently and easily. image Here you can see the modified changes I have made in this function definition. You can add this as a seperate feature or extend the "messageTemplate" by adding another fields. I am always ready to contribute and help you at any point.

rohit-chouhan commented 2 years ago

Feel free to contribute we will review.

On Wed, 26 Oct 2022, 2:12 am Nabil Patel, @.***> wrote:

Adding Components field will make the "messagesTemplate" function more useful.

I have modified the definition of the "messagesTemplate" a bit for my use case and realised that It will be useful for many people out there for integrating WhatsApp api more efficiently and easily. [image: image] https://user-images.githubusercontent.com/80565100/197877320-d2ad536e-1d2a-4789-8497-e83ab4bcef60.png Here you can see the modified changes I have made in this function definition. You can add this as a seperate feature or extend the "messageTemplate" by adding another fields. I am always ready to contribute and help you at any point.

— Reply to this email directly, view it on GitHub https://github.com/rohit-chouhan/whatsapp/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFHE35FLT74RQIZDFFIWT3WFBA2HANCNFSM6AAAAAAROKXOIY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

nabilpatel4012 commented 2 years ago

Yeah Sure, I'll add that and will try to add some other features as well.