@queenanya/baileys 8.5.3 → 8.5.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/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 8.5.3 (2025-08-30)
1
+ ## 8.5.6 (2025-08-30)
2
2
 
3
3
 
4
4
 
@@ -1,6 +1,6 @@
1
1
  /** update the profile picture for yourself or a group as Full */
2
- export declare const updateProfilePictureFull: (jid: any, content: any, sock: any) => Promise<void>;
3
- export declare const updateProfilePictureFull2: (jid: any, content: any, sock: any) => Promise<void>;
2
+ export declare const updateProfilePictureFull: (jid: any, content: any, sock: any) => Promise<any>;
3
+ export declare const updateProfilePictureFull2: (jid: any, content: any, sock: any) => Promise<any>;
4
4
  export declare const sendStatusMentionsF: (jid: any, content: any, sock: any) => Promise<import("..").proto.WebMessageInfo>;
5
5
  export declare const sendStatusMentionsFV2: (jid: any, content: any, sock: any) => Promise<import("..").proto.WebMessageInfo>;
6
6
  export declare const sendStatusMentions: (jid: any, content: any, sock: any) => Promise<import("..").proto.WebMessageInfo>;
@@ -9,7 +9,7 @@ const media_messages_1 = require("./media-messages");
9
9
  const updateProfilePictureFull = async (jid, content, sock) => {
10
10
  const { query } = sock;
11
11
  const { img } = await (0, media_messages_1.generateProfilePictureFP)(content);
12
- await query({
12
+ const media = await query({
13
13
  tag: 'iq',
14
14
  attrs: {
15
15
  target: jid,
@@ -25,12 +25,13 @@ const updateProfilePictureFull = async (jid, content, sock) => {
25
25
  }
26
26
  ]
27
27
  });
28
+ return media;
28
29
  };
29
30
  exports.updateProfilePictureFull = updateProfilePictureFull;
30
31
  const updateProfilePictureFull2 = async (jid, content, sock) => {
31
32
  const { query } = sock;
32
33
  const { preview } = await (0, media_messages_1.generatePP)(content);
33
- await query({
34
+ const media = await query({
34
35
  tag: 'iq',
35
36
  attrs: {
36
37
  target: jid,
@@ -46,6 +47,7 @@ const updateProfilePictureFull2 = async (jid, content, sock) => {
46
47
  }
47
48
  ]
48
49
  });
50
+ return media;
49
51
  };
50
52
  exports.updateProfilePictureFull2 = updateProfilePictureFull2;
51
53
  // send mention msg in group chat or private chat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@queenanya/baileys",
3
- "version": "8.5.3",
3
+ "version": "8.5.6",
4
4
  "description": "Custom Baileys WhatsApp API",
5
5
  "keywords": [
6
6
  "baileys",