@queenanya/baileys 7.2.9 → 7.3.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.
@@ -118,8 +118,8 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
118
118
  setAt: Date;
119
119
  } | undefined>;
120
120
  updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
121
- updateProfilePictureFull: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
122
- updateProfilePictureFull2: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
121
+ updateProfilePictureFull: (jid: any, content: any) => Promise<void>;
122
+ updateProfilePictureFull2: (jid: any, content: any) => Promise<void>;
123
123
  removeProfilePicture: (jid: string) => Promise<void>;
124
124
  updateProfileStatus: (status: string) => Promise<void>;
125
125
  updateProfileName: (name: string) => Promise<void>;
@@ -32,8 +32,8 @@ export declare const makeChatsSocket: (config: SocketConfig) => {
32
32
  setAt: Date;
33
33
  } | undefined>;
34
34
  updateProfilePicture: (jid: string, content: WAMediaUpload) => Promise<void>;
35
- updateProfilePictureFull: (jid: string, content: WAMediaUpload) => Promise<void>;
36
- updateProfilePictureFull2: (jid: string, content: WAMediaUpload) => Promise<void>;
35
+ updateProfilePictureFull: (jid: any, content: any) => Promise<void>;
36
+ updateProfilePictureFull2: (jid: any, content: any) => Promise<void>;
37
37
  removeProfilePicture: (jid: string) => Promise<void>;
38
38
  updateProfileStatus: (status: string) => Promise<void>;
39
39
  updateProfileName: (name: string) => Promise<void>;
@@ -77,8 +77,8 @@ export declare const makeGroupsSocket: (config: SocketConfig) => {
77
77
  setAt: Date;
78
78
  } | undefined>;
79
79
  updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
80
- updateProfilePictureFull: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
81
- updateProfilePictureFull2: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
80
+ updateProfilePictureFull: (jid: any, content: any) => Promise<void>;
81
+ updateProfilePictureFull2: (jid: any, content: any) => Promise<void>;
82
82
  removeProfilePicture: (jid: string) => Promise<void>;
83
83
  updateProfileStatus: (status: string) => Promise<void>;
84
84
  updateProfileName: (name: string) => Promise<void>;
@@ -119,8 +119,8 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
119
119
  setAt: Date;
120
120
  } | undefined>;
121
121
  updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
122
- updateProfilePictureFull: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
123
- updateProfilePictureFull2: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
122
+ updateProfilePictureFull: (jid: any, content: any) => Promise<void>;
123
+ updateProfilePictureFull2: (jid: any, content: any) => Promise<void>;
124
124
  removeProfilePicture: (jid: string) => Promise<void>;
125
125
  updateProfileStatus: (status: string) => Promise<void>;
126
126
  updateProfileName: (name: string) => Promise<void>;
@@ -105,8 +105,8 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
105
105
  setAt: Date;
106
106
  } | undefined>;
107
107
  updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
108
- updateProfilePictureFull: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
109
- updateProfilePictureFull2: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
108
+ updateProfilePictureFull: (jid: any, content: any) => Promise<void>;
109
+ updateProfilePictureFull2: (jid: any, content: any) => Promise<void>;
110
110
  removeProfilePicture: (jid: string) => Promise<void>;
111
111
  updateProfileStatus: (status: string) => Promise<void>;
112
112
  updateProfileName: (name: string) => Promise<void>;
@@ -98,8 +98,8 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
98
98
  setAt: Date;
99
99
  } | undefined>;
100
100
  updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
101
- updateProfilePictureFull: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
102
- updateProfilePictureFull2: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
101
+ updateProfilePictureFull: (jid: any, content: any) => Promise<void>;
102
+ updateProfilePictureFull2: (jid: any, content: any) => Promise<void>;
103
103
  removeProfilePicture: (jid: string) => Promise<void>;
104
104
  updateProfileStatus: (status: string) => Promise<void>;
105
105
  updateProfileName: (name: string) => Promise<void>;
@@ -83,8 +83,8 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
83
83
  setAt: Date;
84
84
  } | undefined>;
85
85
  updateProfilePicture: (jid: string, content: WAMediaUpload) => Promise<void>;
86
- updateProfilePictureFull: (jid: string, content: WAMediaUpload) => Promise<void>;
87
- updateProfilePictureFull2: (jid: string, content: WAMediaUpload) => Promise<void>;
86
+ updateProfilePictureFull: (jid: any, content: any) => Promise<void>;
87
+ updateProfilePictureFull2: (jid: any, content: any) => Promise<void>;
88
88
  removeProfilePicture: (jid: string) => Promise<void>;
89
89
  updateProfileStatus: (status: string) => Promise<void>;
90
90
  updateProfileName: (name: string) => Promise<void>;
@@ -120,8 +120,8 @@ export declare const makeRegistrationSocket: (config: SocketConfig) => {
120
120
  setAt: Date;
121
121
  } | undefined>;
122
122
  updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
123
- updateProfilePictureFull: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
124
- updateProfilePictureFull2: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
123
+ updateProfilePictureFull: (jid: any, content: any) => Promise<void>;
124
+ updateProfilePictureFull2: (jid: any, content: any) => Promise<void>;
125
125
  removeProfilePicture: (jid: string) => Promise<void>;
126
126
  updateProfileStatus: (status: string) => Promise<void>;
127
127
  updateProfileName: (name: string) => Promise<void>;
@@ -193,10 +193,10 @@ const generateProfilePictureFull = async (img) => {
193
193
  const cropped = jimp.crop(0, 0, jimp.getWidth(), jimp.getHeight());
194
194
  let width = jimp.getWidth(), hight = jimp.getHeight(), ratio;
195
195
  if (width > hight) {
196
- ratio = jimp.getWidth() / 1280;
196
+ ratio = jimp.getWidth() / 720;
197
197
  }
198
198
  else {
199
- ratio = jimp.getWidth() / 1280;
199
+ ratio = jimp.getWidth() / 324;
200
200
  }
201
201
  ;
202
202
  width = width / ratio;
@@ -215,7 +215,7 @@ const generateProfilePictureFP = async (buffer) => {
215
215
  const max = jimp.getHeight();
216
216
  const cropped = jimp.crop(0, 0, min, max);
217
217
  return {
218
- img: await cropped.scaleToFit(1280, 1280).getBufferAsync(Jimp.MIME_JPEG),
218
+ img: await cropped.scaleToFit(720, 720).getBufferAsync(Jimp.MIME_JPEG),
219
219
  preview: await cropped.normalize().getBufferAsync(Jimp.MIME_JPEG),
220
220
  };
221
221
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@queenanya/baileys",
3
- "version": "7.2.9",
3
+ "version": "7.3.1",
4
4
  "description": "WhatsApp API",
5
5
  "keywords": [
6
6
  "whatsapp",