ignacio-chiazzo / ruby_whatsapp_sdk

A lightweight, efficient Ruby gem for interacting with Whatsapp Cloud API.
https://ignacio-chiazzo.github.io/ruby_whatsapp_sdk/
MIT License
156 stars 33 forks source link

Implement interactive message API. #8

Closed ignacio-chiazzo closed 1 year ago

ignacio-chiazzo commented 2 years ago

The messages_api allows users to send interactive messages.

We need to implement the functions defined in messages.rb

https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/blob/5cf41178f74ffaf7f69a5832af4f5cc517466f17/lib/whatsapp/api/messages.rb#L181-L190

Read the FB documentation here.

alienware commented 1 year ago

Hey again @ignacio-chiazzo, I would like to go ahead with adding integration for sending interactive list messages/sections from the TODOs of #79

I had a question regarding the implementation, is it okay to rename the newly added, but unreleased interactive API send_interactive_reply_buttons to send_interactive_message? As per the documentation and our support for Interactive resource, we should use the same for all send_interactive_button, send_interactive_reply_buttons, send_interactive_section etc. Please let me know what your alternative would be.

ignacio-chiazzo commented 1 year ago

is it okay to rename the newly added, but unreleased interactive API send_interactive_reply_buttons to send_interactive_message?

Yes, I agree that's the right move. Adding breaking changes to that method is fine since it isn't released.

ignacio-chiazzo commented 1 year ago

Thanks @alienware! the version 0.8.0 was just released and contains interactive messages! IMG_19E1E41CDB15-1