@vanzxy/baileys 1.0.12 → 1.0.14

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.
@@ -986,20 +986,25 @@ export const generateWAMessageContent = async (message, options) => {
986
986
  m = await prepareWAMessageMedia(message, options);
987
987
 
988
988
  // ==========================================
989
- // VANZXY FIX: DEFINE JID & SECURE SW BUTTONS
989
+ // VANZXY FIX: ULTIMATE ANTI-SALURAN & AUDIO SW
990
990
  // ==========================================
991
991
  const jid = options?.jid || '';
992
- if (m) {
993
- if (jid === 'status@broadcast') {
994
- // Hapus anotasi gambar/video agar tombol "Lihat Saluran" lenyap
995
- if (m.imageMessage) m.imageMessage.annotations = undefined;
996
- if (m.videoMessage) m.videoMessage.annotations = undefined;
997
-
998
- // Atur properti audio status agar tidak crash di Android
999
- if (m.audioMessage) {
1000
- m.audioMessage.ptt = true;
1001
- m.audioMessage.contextInfo = { isGroupStatus: true };
1002
- }
992
+ if (jid === 'status@broadcast' && m) {
993
+ // Amankan properti image & video dari tombol saluran (bawaan & anotasinya)
994
+ const msgObj = m;
995
+ if (msgObj.image) {
996
+ msgObj.image.annotations = undefined;
997
+ if (msgObj.image.interactiveAnnotations) msgObj.image.interactiveAnnotations = undefined;
998
+ }
999
+ if (msgObj.video) {
1000
+ msgObj.video.annotations = undefined;
1001
+ if (msgObj.video.interactiveAnnotations) msgObj.video.interactiveAnnotations = undefined;
1002
+ }
1003
+
1004
+ // Amankan audio status agar tidak crash di device Android
1005
+ if (msgObj.audio) {
1006
+ msgObj.audio.ptt = true;
1007
+ msgObj.audio.contextInfo = { isGroupStatus: true };
1003
1008
  }
1004
1009
  }
1005
1010
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanzxy/baileys",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "Enhanced Baileys for Evernight AI by Vanzxy",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",