@langitdeveloper/baileys 2.1.5 → 2.1.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.
@@ -0,0 +1,392 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.makeCommunitiesSocket = exports.extractCommunityMetadata = void 0;
4
+ const { proto } = require("../../WAProto");
5
+ const { WAMessageStubType, WAMessageAddressingMode } = require("../Types");
6
+ const { generateMessageID, unixTimestampSeconds } = require("../Utils");
7
+ const {
8
+ getBinaryNodeChild,
9
+ getBinaryNodeChildren,
10
+ getBinaryNodeChildString,
11
+ jidEncode,
12
+ jidNormalizedUser,
13
+ } = require("../WABinary");
14
+ const { makeBusinessSocket } = require("./business");
15
+ const makeCommunitiesSocket = (config) => {
16
+ const conn = makeBusinessSocket(config);
17
+ const { authState, ev, query, groupMetadata, upsertMessage, cleanDirtyBits } = conn;
18
+ const communityQuery = async (jid, type, content) => query({
19
+ tag: 'iq',
20
+ attrs: { type, xmlns: 'w:g2', to: jid },
21
+ content
22
+ });
23
+ const communityMetadata = async (jid) => {
24
+ const result = await communityQuery(jid, 'get', [
25
+ { tag: 'query', attrs: { request: 'interactive' } }
26
+ ]);
27
+ return extractCommunityMetadata(result);
28
+ };
29
+ const communityFetchAllParticipating = async () => {
30
+ const result = await query({
31
+ tag: 'iq',
32
+ attrs: { to: '@g.us', xmlns: 'w:g2', type: 'get' },
33
+ content: [
34
+ {
35
+ tag: 'participating',
36
+ attrs: {},
37
+ content: [
38
+ { tag: 'participants', attrs: {} },
39
+ { tag: 'description', attrs: {} }
40
+ ]
41
+ }
42
+ ]
43
+ });
44
+ const data = {};
45
+ const communitiesChild = getBinaryNodeChild(result, 'communities');
46
+ if (communitiesChild) {
47
+ const communities = getBinaryNodeChildren(communitiesChild, 'community');
48
+ for (const communityNode of communities) {
49
+ const meta = extractCommunityMetadata({
50
+ tag: 'result',
51
+ attrs: {},
52
+ content: [communityNode]
53
+ });
54
+ data[meta.id] = meta;
55
+ }
56
+ }
57
+ conn.ev.emit('groups.update', Object.values(data));
58
+ return data;
59
+ };
60
+ async function parseGroupResult(node) {
61
+ var _a;
62
+ (_a = conn.logger) === null || _a === void 0 ? void 0 : _a.info({ node }, 'parseGroupResult');
63
+ const groupNode = getBinaryNodeChild(node, 'group');
64
+ if (groupNode) {
65
+ try {
66
+ const metadata = await groupMetadata(`${groupNode.attrs.id}@g.us`);
67
+ return metadata || null;
68
+ }
69
+ catch (error) {
70
+ var _b;
71
+ (_b = conn.logger) === null || _b === void 0 ? void 0 : _b.warn({ error }, 'Error parsing group metadata');
72
+ return null;
73
+ }
74
+ }
75
+ return null;
76
+ }
77
+ conn.ws.on('CB:ib,,dirty', async (node) => {
78
+ const { attrs } = getBinaryNodeChild(node, 'dirty');
79
+ if (attrs.type !== 'communities') {
80
+ return;
81
+ }
82
+ await communityFetchAllParticipating();
83
+ await cleanDirtyBits('groups');
84
+ });
85
+ return {
86
+ ...conn,
87
+ communityQuery,
88
+ communityMetadata,
89
+ communityCreate: async (subject, body) => {
90
+ const descriptionId = generateMessageID().substring(0, 12);
91
+ const result = await communityQuery('@g.us', 'set', [
92
+ {
93
+ tag: 'create',
94
+ attrs: { subject },
95
+ content: [
96
+ {
97
+ tag: 'description',
98
+ attrs: { id: descriptionId },
99
+ content: [
100
+ { tag: 'body', attrs: {}, content: Buffer.from(body || '', 'utf-8') }
101
+ ]
102
+ },
103
+ { tag: 'parent', attrs: { default_membership_approval_mode: 'request_required' } },
104
+ { tag: 'allow_non_admin_sub_group_creation', attrs: {} },
105
+ { tag: 'create_general_chat', attrs: {} }
106
+ ]
107
+ }
108
+ ]);
109
+ return await parseGroupResult(result);
110
+ },
111
+ communityCreateGroup: async (subject, participants, parentCommunityJid) => {
112
+ const key = generateMessageID();
113
+ const result = await communityQuery('@g.us', 'set', [
114
+ {
115
+ tag: 'create',
116
+ attrs: { subject, key },
117
+ content: [
118
+ ...participants.map((jid) => ({ tag: 'participant', attrs: { jid } })),
119
+ { tag: 'linked_parent', attrs: { jid: parentCommunityJid } }
120
+ ]
121
+ }
122
+ ]);
123
+ return await parseGroupResult(result);
124
+ },
125
+ communityLeave: async (id) => {
126
+ await communityQuery('@g.us', 'set', [
127
+ { tag: 'leave', attrs: {}, content: [{ tag: 'community', attrs: { id } }] }
128
+ ]);
129
+ },
130
+ communityUpdateSubject: async (jid, subject) => {
131
+ await communityQuery(jid, 'set', [
132
+ { tag: 'subject', attrs: {}, content: Buffer.from(subject, 'utf-8') }
133
+ ]);
134
+ },
135
+ communityLinkGroup: async (groupJid, parentCommunityJid) => {
136
+ await communityQuery(parentCommunityJid, 'set', [
137
+ {
138
+ tag: 'links',
139
+ attrs: {},
140
+ content: [
141
+ {
142
+ tag: 'link',
143
+ attrs: { link_type: 'sub_group' },
144
+ content: [{ tag: 'group', attrs: { jid: groupJid } }]
145
+ }
146
+ ]
147
+ }
148
+ ]);
149
+ },
150
+ communityUnlinkGroup: async (groupJid, parentCommunityJid) => {
151
+ await communityQuery(parentCommunityJid, 'set', [
152
+ {
153
+ tag: 'unlink',
154
+ attrs: { unlink_type: 'sub_group' },
155
+ content: [{ tag: 'group', attrs: { jid: groupJid } }]
156
+ }
157
+ ]);
158
+ },
159
+ communityFetchLinkedGroups: async (jid) => {
160
+ let communityJid = jid;
161
+ let isCommunity = false;
162
+ const metadata = await groupMetadata(jid);
163
+ if (metadata.linkedParent) {
164
+ communityJid = metadata.linkedParent;
165
+ }
166
+ else {
167
+ isCommunity = true;
168
+ }
169
+ const result = await communityQuery(communityJid, 'get', [
170
+ { tag: 'sub_groups', attrs: {} }
171
+ ]);
172
+ const linkedGroupsData = [];
173
+ const subGroupsNode = getBinaryNodeChild(result, 'sub_groups');
174
+ if (subGroupsNode) {
175
+ const groupNodes = getBinaryNodeChildren(subGroupsNode, 'group');
176
+ for (const groupNode of groupNodes) {
177
+ linkedGroupsData.push({
178
+ id: groupNode.attrs.id ? jidEncode(groupNode.attrs.id, 'g.us') : undefined,
179
+ subject: groupNode.attrs.subject || '',
180
+ creation: groupNode.attrs.creation ? Number(groupNode.attrs.creation) : undefined,
181
+ owner: groupNode.attrs.creator ? jidNormalizedUser(groupNode.attrs.creator) : undefined,
182
+ size: groupNode.attrs.size ? Number(groupNode.attrs.size) : undefined
183
+ });
184
+ }
185
+ }
186
+ return { communityJid, isCommunity, linkedGroups: linkedGroupsData };
187
+ },
188
+ communityRequestParticipantsList: async (jid) => {
189
+ const result = await communityQuery(jid, 'get', [
190
+ { tag: 'membership_approval_requests', attrs: {} }
191
+ ]);
192
+ const node = getBinaryNodeChild(result, 'membership_approval_requests');
193
+ const participants = getBinaryNodeChildren(node, 'membership_approval_request');
194
+ return participants.map((v) => v.attrs);
195
+ },
196
+ communityRequestParticipantsUpdate: async (jid, participants, action) => {
197
+ const result = await communityQuery(jid, 'set', [
198
+ {
199
+ tag: 'membership_requests_action',
200
+ attrs: {},
201
+ content: [
202
+ {
203
+ tag: action,
204
+ attrs: {},
205
+ content: participants.map((jid) => ({ tag: 'participant', attrs: { jid } }))
206
+ }
207
+ ]
208
+ }
209
+ ]);
210
+ const node = getBinaryNodeChild(result, 'membership_requests_action');
211
+ const nodeAction = getBinaryNodeChild(node, action);
212
+ const participantsAffected = getBinaryNodeChildren(nodeAction, 'participant');
213
+ return participantsAffected.map((p) => ({ status: p.attrs.error || '200', jid: p.attrs.jid }));
214
+ },
215
+ communityParticipantsUpdate: async (jid, participants, action) => {
216
+ const result = await communityQuery(jid, 'set', [
217
+ {
218
+ tag: action,
219
+ attrs: action === 'remove' ? { linked_groups: 'true' } : {},
220
+ content: participants.map((jid) => ({ tag: 'participant', attrs: { jid } }))
221
+ }
222
+ ]);
223
+ const node = getBinaryNodeChild(result, action);
224
+ const participantsAffected = getBinaryNodeChildren(node, 'participant');
225
+ return participantsAffected.map((p) => ({ status: p.attrs.error || '200', jid: p.attrs.jid, content: p }));
226
+ },
227
+ communityUpdateDescription: async (jid, description) => {
228
+ var _a;
229
+ const metadata = await communityMetadata(jid);
230
+ const prev = (_a = metadata.descId) !== null && _a !== void 0 ? _a : null;
231
+ await communityQuery(jid, 'set', [
232
+ {
233
+ tag: 'description',
234
+ attrs: {
235
+ ...(description ? { id: generateMessageID() } : { delete: 'true' }),
236
+ ...(prev ? { prev } : {})
237
+ },
238
+ content: description
239
+ ? [{ tag: 'body', attrs: {}, content: Buffer.from(description, 'utf-8') }]
240
+ : undefined
241
+ }
242
+ ]);
243
+ },
244
+ communityInviteCode: async (jid) => {
245
+ var _a;
246
+ const result = await communityQuery(jid, 'get', [{ tag: 'invite', attrs: {} }]);
247
+ const inviteNode = getBinaryNodeChild(result, 'invite');
248
+ return (_a = inviteNode === null || inviteNode === void 0 ? void 0 : inviteNode.attrs) === null || _a === void 0 ? void 0 : _a.code;
249
+ },
250
+ communityRevokeInvite: async (jid) => {
251
+ var _a;
252
+ const result = await communityQuery(jid, 'set', [{ tag: 'invite', attrs: {} }]);
253
+ const inviteNode = getBinaryNodeChild(result, 'invite');
254
+ return (_a = inviteNode === null || inviteNode === void 0 ? void 0 : inviteNode.attrs) === null || _a === void 0 ? void 0 : _a.code;
255
+ },
256
+ communityAcceptInvite: async (code) => {
257
+ var _a;
258
+ const results = await communityQuery('@g.us', 'set', [
259
+ { tag: 'invite', attrs: { code } }
260
+ ]);
261
+ const result = getBinaryNodeChild(results, 'community');
262
+ return (_a = result === null || result === void 0 ? void 0 : result.attrs) === null || _a === void 0 ? void 0 : _a.jid;
263
+ },
264
+ communityRevokeInviteV4: async (communityJid, invitedJid) => {
265
+ const result = await communityQuery(communityJid, 'set', [
266
+ {
267
+ tag: 'revoke',
268
+ attrs: {},
269
+ content: [{ tag: 'participant', attrs: { jid: invitedJid } }]
270
+ }
271
+ ]);
272
+ return !!result;
273
+ },
274
+ communityAcceptInviteV4: ev.createBufferedFunction(async (key, inviteMessage) => {
275
+ var _a;
276
+ key = typeof key === 'string' ? { remoteJid: key } : key;
277
+ const results = await communityQuery(inviteMessage.groupJid, 'set', [
278
+ {
279
+ tag: 'accept',
280
+ attrs: {
281
+ code: inviteMessage.inviteCode,
282
+ expiration: inviteMessage.inviteExpiration.toString(),
283
+ admin: key.remoteJid
284
+ }
285
+ }
286
+ ]);
287
+ if (key.id) {
288
+ inviteMessage = proto.Message.GroupInviteMessage.fromObject(inviteMessage);
289
+ inviteMessage.inviteExpiration = 0;
290
+ inviteMessage.inviteCode = '';
291
+ ev.emit('messages.update', [
292
+ { key, update: { message: { groupInviteMessage: inviteMessage } } }
293
+ ]);
294
+ }
295
+ await upsertMessage({
296
+ key: {
297
+ remoteJid: inviteMessage.groupJid,
298
+ id: generateMessageID((_a = conn.user) === null || _a === void 0 ? void 0 : _a.id),
299
+ fromMe: false,
300
+ participant: key.remoteJid
301
+ },
302
+ messageStubType: WAMessageStubType.GROUP_PARTICIPANT_ADD,
303
+ messageStubParameters: [JSON.stringify(authState.creds.me)],
304
+ participant: key.remoteJid,
305
+ messageTimestamp: unixTimestampSeconds()
306
+ }, 'notify');
307
+ return results.attrs.from;
308
+ }),
309
+ communityGetInviteInfo: async (code) => {
310
+ const results = await communityQuery('@g.us', 'get', [
311
+ { tag: 'invite', attrs: { code } }
312
+ ]);
313
+ return extractCommunityMetadata(results);
314
+ },
315
+ communityToggleEphemeral: async (jid, ephemeralExpiration) => {
316
+ const content = ephemeralExpiration
317
+ ? { tag: 'ephemeral', attrs: { expiration: ephemeralExpiration.toString() } }
318
+ : { tag: 'not_ephemeral', attrs: {} };
319
+ await communityQuery(jid, 'set', [content]);
320
+ },
321
+ communitySettingUpdate: async (jid, setting) => {
322
+ await communityQuery(jid, 'set', [{ tag: setting, attrs: {} }]);
323
+ },
324
+ communityMemberAddMode: async (jid, mode) => {
325
+ await communityQuery(jid, 'set', [
326
+ { tag: 'member_add_mode', attrs: {}, content: mode }
327
+ ]);
328
+ },
329
+ communityJoinApprovalMode: async (jid, mode) => {
330
+ await communityQuery(jid, 'set', [
331
+ {
332
+ tag: 'membership_approval_mode',
333
+ attrs: {},
334
+ content: [{ tag: 'community_join', attrs: { state: mode } }]
335
+ }
336
+ ]);
337
+ },
338
+ communityFetchAllParticipating
339
+ };
340
+ };
341
+ exports.makeCommunitiesSocket = makeCommunitiesSocket;
342
+ const extractCommunityMetadata = (result) => {
343
+ var _a, _b, _c, _d, _e;
344
+ const community = getBinaryNodeChild(result, 'group');
345
+ const descChild = getBinaryNodeChild(community, 'description');
346
+ let desc;
347
+ let descId;
348
+ if (descChild) {
349
+ desc = getBinaryNodeChildString(descChild, 'body');
350
+ descId = descChild.attrs.id;
351
+ }
352
+ const mode = community.attrs.addressing_mode;
353
+ const communityId = community.attrs.id.includes('@')
354
+ ? community.attrs.id
355
+ : jidEncode(community.attrs.id, 'g.us');
356
+ const eph = (_a = getBinaryNodeChild(community, 'ephemeral')) === null || _a === void 0 ? void 0 : _a.attrs.expiration;
357
+ const memberAddMode = getBinaryNodeChildString(community, 'member_add_mode') === 'all_member_add';
358
+ const metadata = {
359
+ id: communityId,
360
+ subject: community.attrs.subject,
361
+ subjectOwner: community.attrs.s_o,
362
+ subjectOwnerAlt: ((_b = community.attrs) === null || _b === void 0 ? void 0 : _b.s_o_pn) ? community.attrs.s_o_pn : community.attrs.s_o,
363
+ subjectTime: Number(community.attrs.s_t || 0),
364
+ size: Number((_c = community.attrs) === null || _c === void 0 ? void 0 : _c.size
365
+ ? community.attrs.size
366
+ : getBinaryNodeChildren(community, 'participant').length),
367
+ creation: Number(community.attrs.creation || 0),
368
+ owner: community.attrs.creator ? jidNormalizedUser(community.attrs.creator) : undefined,
369
+ ownerAlt: community.attrs.creator
370
+ ? jidNormalizedUser(((_d = community.attrs) === null || _d === void 0 ? void 0 : _d.creator_pn) ? community.attrs.creator_pn : community.attrs.creator)
371
+ : undefined,
372
+ ownerCountry: community.attrs.creator_country_code,
373
+ desc,
374
+ descId,
375
+ linkedParent: ((_e = getBinaryNodeChild(community, 'linked_parent')) === null || _e === void 0 ? void 0 : _e.attrs.jid) || undefined,
376
+ restrict: !!getBinaryNodeChild(community, 'locked'),
377
+ announce: !!getBinaryNodeChild(community, 'announcement'),
378
+ isCommunity: !!getBinaryNodeChild(community, 'parent'),
379
+ isCommunityAnnounce: !!getBinaryNodeChild(community, 'default_sub_group'),
380
+ joinApprovalMode: !!getBinaryNodeChild(community, 'membership_approval_mode'),
381
+ memberAddMode,
382
+ participants: getBinaryNodeChildren(community, 'participant').map(({ attrs }) => ({
383
+ id: mode === WAMessageAddressingMode.LID ? community.attrs.phone_number : attrs.jid,
384
+ lid: mode === WAMessageAddressingMode.LID ? community.attrs.jid : attrs.lid,
385
+ admin: attrs.type || null
386
+ })),
387
+ ephemeralDuration: eph ? Number(eph) : undefined,
388
+ addressingMode: mode
389
+ };
390
+ return metadata;
391
+ };
392
+ exports.extractCommunityMetadata = extractCommunityMetadata;
@@ -10,6 +10,7 @@ const Defaults_1 = require("../Defaults");
10
10
  const crypto_1 = require("../Utils/crypto");
11
11
  const WABinary_1 = require("../WABinary");
12
12
  const business_1 = require("./business");
13
+ const community_1 = require("./community");
13
14
  function urlencode(str) {
14
15
  return str.replace(/-/g, '%2d').replace(/_/g, '%5f').replace(/~/g, '%7e');
15
16
  }
@@ -17,7 +18,7 @@ const validRegistrationOptions = (config) => (config === null || config === void
17
18
  config.phoneNumberNationalNumber &&
18
19
  config.phoneNumberMobileCountryCode;
19
20
  const makeRegistrationSocket = (config) => {
20
- const sock = (0, business_1.makeBusinessSocket)(config);
21
+ const sock = (0, community_1.makeCommunitiesSocket)(config);
21
22
  const register = async (code) => {
22
23
  if (!validRegistrationOptions(config.auth.creds.registration)) {
23
24
  throw new Error('please specify the registration options');
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WAMessageStatus = exports.WAMessageStubType = exports.WAProto = void 0;
3
+ exports.WAMessageStatus = exports.WAMessageStubType = exports.WAProto = exports.WAMessageAddressingMode = void 0;
4
+ exports.WAMessageAddressingMode = { PN: 'pn', LID: 'lid' };
4
5
  const WAProto_1 = require("../../WAProto");
5
6
  Object.defineProperty(exports, "WAProto", { enumerable: true, get: function () { return WAProto_1.proto; } });
6
7
  // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
@@ -35,9 +35,25 @@ const makeEventBuffer = (logger) => {
35
35
  let data = makeBufferData();
36
36
  let buffersInProgress = 0;
37
37
  // take the generic event and fire it as a baileys event
38
+ // each listener is invoked in isolation: if a listener throws (sync) or
39
+ // its returned promise rejects (async), we log it and keep going instead
40
+ // of letting the error bubble up and potentially crash the whole process.
38
41
  ev.on('event', (map) => {
39
42
  for (const event in map) {
40
- ev.emit(event, map[event]);
43
+ const listeners = ev.listeners(event);
44
+ for (const listener of listeners) {
45
+ try {
46
+ const result = listener(map[event]);
47
+ if (result && typeof result.catch === 'function') {
48
+ result.catch((err) => {
49
+ logger.error({ err, event }, 'unhandled async error in event listener, bot tetap jalan');
50
+ });
51
+ }
52
+ }
53
+ catch (err) {
54
+ logger.error({ err, event }, 'error in event listener, bot tetap jalan');
55
+ }
56
+ }
41
57
  }
42
58
  });
43
59
  function buffer() {
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.assertMediaContent = exports.downloadMediaMessage = exports.aggregateMessageKeysNotFromMe = exports.getAggregateVotesInPollMessage = exports.updateMessageWithPollUpdate = exports.updateMessageWithReaction = exports.updateMessageWithReceipt = exports.getDevice = exports.extractMessageContent = exports.normalizeMessageContent = exports.getContentType = exports.generateWAMessage = exports.generateWAMessageFromContent = exports.generateWAMessageContent = exports.generateForwardMessageContent = exports.prepareDisappearingMessageSettingContent = exports.prepareWAMessageMedia = exports.generateLinkPreviewIfRequired = exports.extractUrlFromText = void 0;
6
+ exports.assertMediaContent = exports.downloadMediaMessage = exports.aggregateMessageKeysNotFromMe = exports.getAggregateVotesInPollMessage = exports.updateMessageWithPollUpdate = exports.updateMessageWithReaction = exports.updateMessageWithReceipt = exports.getDevice = exports.extractMessageContent = exports.normalizeMessageContent = exports.getContentType = exports.generateWAMessage = exports.generateWAMessageFromContent = exports.generateWAMessageContent = exports.generateForwardMessageContent = exports.prepareDisappearingMessageSettingContent = exports.prepareWAMessageMedia = exports.generateLinkPreviewIfRequired = exports.extractUrlFromText = exports.prepareRichResponseMessage = void 0;
7
7
  const boom_1 = require("@hapi/boom");
8
8
  const axios_1 = __importDefault(require("axios"));
9
9
  const crypto_1 = require("crypto");
@@ -219,6 +219,39 @@ const prepareDisappearingMessageSettingContent = (ephemeralExpiration) => {
219
219
  return Types_1.WAProto.Message.fromObject(content);
220
220
  };
221
221
  exports.prepareDisappearingMessageSettingContent = prepareDisappearingMessageSettingContent;
222
+ /**
223
+ * Wrapper helper to build a `richMessage` content object.
224
+ * Accepts either the flat shape directly:
225
+ * prepareRichResponseMessage({ text: '...', code: { language: 'js', code: '...' } })
226
+ * or a `richResponse` array of fragments (merged automatically: text fragments
227
+ * are joined with a blank line, other keys keep the first value seen):
228
+ * prepareRichResponseMessage({ richResponse: [{ text: '...' }, { code: {...} }] })
229
+ */
230
+ const prepareRichResponseMessage = (input) => {
231
+ if (input && Array.isArray(input.richResponse)) {
232
+ const merged = {};
233
+ const texts = [];
234
+ for (const item of input.richResponse) {
235
+ if (!item || typeof item !== 'object') {
236
+ continue;
237
+ }
238
+ for (const k of Object.keys(item)) {
239
+ if (k === 'text') {
240
+ texts.push(item.text);
241
+ }
242
+ else if (merged[k] === undefined) {
243
+ merged[k] = item[k];
244
+ }
245
+ }
246
+ }
247
+ if (texts.length) {
248
+ merged.text = texts.join('\n\n');
249
+ }
250
+ return { richMessage: merged };
251
+ }
252
+ return { richMessage: input };
253
+ };
254
+ exports.prepareRichResponseMessage = prepareRichResponseMessage;
222
255
  /**
223
256
  * Generate forwarded message content like WA does
224
257
  * @param message the message to forward
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langitdeveloper/baileys",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "WhatsApp API Modification By Langit",
5
5
  "keywords": [
6
6
  "whatsapp",