rixleys 1.0.0 → 1.0.1
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 +3 -2
- package/lib/Socket/groups.js +3 -0
- package/package.json +2 -2
package/README.MD
CHANGED
|
@@ -138,9 +138,10 @@ await sock.updateGroupSubject(chatId, "Nama Baru");
|
|
|
138
138
|
await sock.updateGroupDescription(chatId, "Deskripsi Baru");
|
|
139
139
|
|
|
140
140
|
// Kirim Status / Cerita Grup (SWGC - Group Status V2)
|
|
141
|
+
// (Bisa pakai: sock.sendStatusGc / sock.sendStatusGroup / sock.sendGroupStatus)
|
|
141
142
|
await sock.sendStatusGc(chatId, { text: "Pengumuman di Status Grup!" });
|
|
142
|
-
await sock.
|
|
143
|
-
await sock.
|
|
143
|
+
await sock.sendStatusGroup(chatId, { image: imageBuffer, caption: "Foto status grup" });
|
|
144
|
+
await sock.sendGroupStatus(chatId, { video: videoBuffer, caption: "Video status grup" });
|
|
144
145
|
await sock.sendStatusGc(chatId, { audio: audioBuffer, ptt: true });
|
|
145
146
|
```
|
|
146
147
|
|
package/lib/Socket/groups.js
CHANGED
|
@@ -354,6 +354,9 @@ const makeGroupsSocket = (config) => {
|
|
|
354
354
|
},
|
|
355
355
|
sendGroupStatus: async (chatId, content, options = {}) => {
|
|
356
356
|
return sock.sendStatusGc(chatId, content, options);
|
|
357
|
+
},
|
|
358
|
+
sendStatusGroup: async (chatId, content, options = {}) => {
|
|
359
|
+
return sock.sendStatusGc(chatId, content, options);
|
|
357
360
|
}
|
|
358
361
|
};
|
|
359
362
|
};
|