@vanzxy/baileys 1.2.2 → 1.2.3

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.
@@ -492,13 +492,16 @@ const prepareNativeFlowButtons = (message) => {
492
492
  if (hasOptionalProperty(button, 'id') && !!button.id) {
493
493
  return {
494
494
  name: 'quick_reply',
495
+ parameters: {},
495
496
  display_text: buttonText || '👉🏻 Click',
496
497
  id: button.id,
497
498
  icon: buttonIcon
498
499
  };
499
- } else if (hasOptionalProperty(button, 'copy') && !!button.copy) {
500
+ }
501
+ else if (hasOptionalProperty(button, 'copy') && !!button.copy) {
500
502
  return {
501
503
  name: 'cta_copy',
504
+ parameters: {},
502
505
  display_text: buttonText || '📋 Copy',
503
506
  copy_code: button.copy,
504
507
  icon: buttonIcon
@@ -507,6 +510,7 @@ const prepareNativeFlowButtons = (message) => {
507
510
  else if (hasOptionalProperty(button, 'url') && !!button.url) {
508
511
  return {
509
512
  name: 'cta_url',
513
+ parameters: {},
510
514
  display_text: buttonText || '🌐 Visit',
511
515
  url: button.url,
512
516
  merchant_url: button.url,
@@ -517,8 +521,9 @@ const prepareNativeFlowButtons = (message) => {
517
521
  else if (hasOptionalProperty(button, 'call') && !!button.call) {
518
522
  return {
519
523
  name: 'cta_call',
524
+ parameters: {},
520
525
  display_text: buttonText || '📞 Call',
521
- phone_number: button.call,
526
+ phone_NUMBER: button.call,
522
527
  icon: buttonIcon
523
528
  };
524
529
  }
@@ -526,9 +531,10 @@ const prepareNativeFlowButtons = (message) => {
526
531
  else if (hasOptionalProperty(button, 'sections') && !!button.sections) {
527
532
  return {
528
533
  name: 'single_select',
534
+ parameters: {},
529
535
  title: buttonText || '📋 Select',
530
536
  sections: button.sections,
531
- icon: buttonIcon
537
+ icon: buttonIcon,
532
538
  };
533
539
  }
534
540
  return button;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanzxy/baileys",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Enhanced Baileys fork by Vanzxy — based on @itsliaaa/baileys + @whiskeysockets/baileys with fixes for audio group status and clean media without newsletter button.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",