@nuiisweety/baileys 0.1.5 → 0.1.6

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.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  *Fork dari [`@whiskeysockets/baileys`](https://github.com/WhiskeySockets/Baileys) v7.0.0-rc11*
8
8
  *dikembangkan dengan sepenuh hati oleh **NuiiS4TORU***
9
9
 
10
- [![npm version](https://img.shields.io/badge/npm-0.1.4-pink?style=flat-square&logo=npm)](https://www.npmjs.com/package/@nuiisweety/baileys)
10
+ [![npm version](https://img.shields.io/badge/npm-0.1.6-pink?style=flat-square&logo=npm)](https://www.npmjs.com/package/@nuiisweety/baileys)
11
11
  [![license](https://img.shields.io/badge/license-MIT-lavender?style=flat-square)](LICENSE)
12
12
  [![based on](https://img.shields.io/badge/based%20on-@whiskeysockets%2Fbaileys-orchid?style=flat-square)](https://github.com/WhiskeySockets/Baileys)
13
13
 
@@ -1078,13 +1078,13 @@ Kirim satu atau beberapa gambar sebagai grid image di AI Rich Response.
1078
1078
  ```js
1079
1079
  // Satu gambar
1080
1080
  await sock.sendMessage(jid, {
1081
- image: 'https://example.com/photo.jpg',
1081
+ richImage: 'https://example.com/photo.jpg',
1082
1082
  headerText: 'Gambar untuk kamu'
1083
1083
  })
1084
1084
 
1085
1085
  // Beberapa gambar (grid)
1086
1086
  await sock.sendMessage(jid, {
1087
- image: [
1087
+ richImage: [
1088
1088
  'https://example.com/photo1.jpg',
1089
1089
  'https://example.com/photo2.jpg',
1090
1090
  'https://example.com/photo3.jpg'
@@ -1105,19 +1105,19 @@ Kirim satu atau beberapa video di AI Rich Response.
1105
1105
  ```js
1106
1106
  // Satu video
1107
1107
  await sock.sendMessage(jid, {
1108
- video: 'https://example.com/video.mp4',
1108
+ richVideo: 'https://example.com/video.mp4',
1109
1109
  headerText: 'Video untuk kamu'
1110
1110
  })
1111
1111
 
1112
1112
  // Dengan durasi (format: 'url|durasi_detik')
1113
1113
  await sock.sendMessage(jid, {
1114
- video: 'https://example.com/video.mp4|120',
1114
+ richVideo: 'https://example.com/video.mp4|120',
1115
1115
  headerText: 'Video berdurasi 2 menit'
1116
1116
  })
1117
1117
 
1118
1118
  // Beberapa video
1119
1119
  await sock.sendMessage(jid, {
1120
- video: [
1120
+ richVideo: [
1121
1121
  'https://example.com/video1.mp4|60',
1122
1122
  'https://example.com/video2.mp4|90'
1123
1123
  ],
@@ -1225,7 +1225,7 @@ Kirim kartu produk (single atau horizontal scroll untuk banyak produk).
1225
1225
  ```js
1226
1226
  // Satu produk (Single layout)
1227
1227
  await sock.sendMessage(jid, {
1228
- product: {
1228
+ richProduct: {
1229
1229
  title: 'Nama Produk',
1230
1230
  brand: 'Nama Brand',
1231
1231
  price: 'Rp 150.000',
@@ -1239,7 +1239,7 @@ await sock.sendMessage(jid, {
1239
1239
 
1240
1240
  // Beberapa produk (HScroll layout)
1241
1241
  await sock.sendMessage(jid, {
1242
- product: [
1242
+ richProduct: [
1243
1243
  {
1244
1244
  title: 'Produk A',
1245
1245
  brand: 'Brand X',
@@ -1283,7 +1283,7 @@ Kirim kartu post sosial media (Instagram, TikTok, dll) dalam horizontal scroll.
1283
1283
  ```js
1284
1284
  // Satu post
1285
1285
  await sock.sendMessage(jid, {
1286
- post: {
1286
+ richPost: {
1287
1287
  title: 'Judul Post',
1288
1288
  subtitle: 'Subjudul',
1289
1289
  username: 'namauser',
@@ -1306,7 +1306,7 @@ await sock.sendMessage(jid, {
1306
1306
 
1307
1307
  // Beberapa post (carousel horizontal)
1308
1308
  await sock.sendMessage(jid, {
1309
- post: [
1309
+ richPost: [
1310
1310
  {
1311
1311
  username: 'user1',
1312
1312
  thumbnail_url: 'https://example.com/thumb1.jpg',
@@ -1638,7 +1638,7 @@ await sock.sendMessage(jid, {
1638
1638
  await sock.sendMessage(jid, {
1639
1639
  richResponse: [
1640
1640
  { text: 'Berikut hasilnya:' },
1641
- { image: ['https://example.com/img1.jpg', 'https://example.com/img2.jpg'] },
1641
+ { richImage: ['https://example.com/img1.jpg', 'https://example.com/img2.jpg'] },
1642
1642
  { source: [{ url: 'https://example.com', title: 'Sumber Data' }] },
1643
1643
  { code: 'print("Hello")', language: 'python' },
1644
1644
  {