@vanzxy/baileys 1.0.12 → 1.0.13

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.
@@ -991,14 +991,14 @@ export const generateWAMessageContent = async (message, options) => {
991
991
  const jid = options?.jid || '';
992
992
  if (m) {
993
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;
994
+ // Hapus anotasi gambar/video (Properti asli TS: m.image / m.video)
995
+ if (m.image) m.image.annotations = undefined;
996
+ if (m.video) m.video.annotations = undefined;
997
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 };
998
+ // Atur properti audio status agar tidak crash di Android (m.audio)
999
+ if (m.audio) {
1000
+ m.audio.ptt = true;
1001
+ m.audio.contextInfo = { isGroupStatus: true };
1002
1002
  }
1003
1003
  }
1004
1004
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanzxy/baileys",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Enhanced Baileys for Evernight AI by Vanzxy",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",