ishumdz-bail 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -588,6 +588,14 @@ export const generateWAMessageContent = async (message, options) => {
588
588
  applyContextInfoAndMentions(interactiveMessage, message);
589
589
  m = { interactiveMessage };
590
590
  }
591
+ else if ('buttonsMessage' in message && !!message.buttonsMessage) {
592
+ // PATCH: raw buttonsMessage pass-through — classic horizontal buttons (reference: Case X Plugin case.js).
593
+ // Fully-formed ButtonsMessage with any header (location/image/video/
594
+ // document), contentText, footerText, headerType and buttons[].
595
+ // type:1 buttons render in one horizontal row; nativeFlowInfo
596
+ // single_select opens a list sheet on tap.
597
+ m = { buttonsMessage: proto.Message.ButtonsMessage.create(message.buttonsMessage) };
598
+ }
591
599
  else if ('buttons' in message && !!message.buttons) {
592
600
  const buttonsMessage = {
593
601
  buttons: message.buttons.map(b => ({ ...b, type: proto.Message.ButtonsMessage.Button.Type.RESPONSE }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ishumdz-bail",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "WhatsApp API Modification By Lovely",
5
5
  "keywords": [
6
6
  "whatsapp",