@arcaelas/whatsapp 1.1.1 → 1.2.2
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/build/Chat.d.ts +36 -36
- package/build/Contact.d.ts +448 -448
- package/build/Message.d.ts +98 -98
- package/build/WhatsApp.js.map +1 -1
- package/package.json +2 -2
package/build/Contact.d.ts
CHANGED
|
@@ -92,20 +92,20 @@ export declare function contact(wa: WhatsApp): {
|
|
|
92
92
|
content(): Promise<Buffer>;
|
|
93
93
|
readonly index: import("./Message").IMessageIndex;
|
|
94
94
|
readonly raw: import("baileys").WAMessage;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
95
|
+
get id(): string;
|
|
96
|
+
get cid(): string;
|
|
97
|
+
get mid(): string | null;
|
|
98
|
+
get me(): boolean;
|
|
99
|
+
get author(): string;
|
|
100
|
+
get edited(): boolean;
|
|
101
|
+
get type(): import("./Message").MessageType;
|
|
102
|
+
get caption(): string;
|
|
103
|
+
get mime(): string;
|
|
104
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
105
|
+
get starred(): boolean;
|
|
106
|
+
get forwarded(): boolean;
|
|
107
|
+
get created_at(): number;
|
|
108
|
+
get deleted_at(): number | null;
|
|
109
109
|
};
|
|
110
110
|
get(cid: string, mid: string): Promise<InstanceType</*elided*/ any> | null>;
|
|
111
111
|
react(cid: string, mid: string, emoji: string): Promise<boolean>;
|
|
@@ -116,142 +116,142 @@ export declare function contact(wa: WhatsApp): {
|
|
|
116
116
|
content(): Promise<Buffer>;
|
|
117
117
|
readonly index: import("./Message").IMessageIndex;
|
|
118
118
|
readonly raw: import("baileys").WAMessage;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
119
|
+
get id(): string;
|
|
120
|
+
get cid(): string;
|
|
121
|
+
get mid(): string | null;
|
|
122
|
+
get me(): boolean;
|
|
123
|
+
get author(): string;
|
|
124
|
+
get edited(): boolean;
|
|
125
|
+
get type(): import("./Message").MessageType;
|
|
126
|
+
get caption(): string;
|
|
127
|
+
get mime(): string;
|
|
128
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
129
|
+
get starred(): boolean;
|
|
130
|
+
get forwarded(): boolean;
|
|
131
|
+
get created_at(): number;
|
|
132
|
+
get deleted_at(): number | null;
|
|
133
133
|
} | null>;
|
|
134
134
|
image(cid: string, buffer: Buffer, caption?: string): Promise<{
|
|
135
135
|
content(): Promise<Buffer>;
|
|
136
136
|
readonly index: import("./Message").IMessageIndex;
|
|
137
137
|
readonly raw: import("baileys").WAMessage;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
138
|
+
get id(): string;
|
|
139
|
+
get cid(): string;
|
|
140
|
+
get mid(): string | null;
|
|
141
|
+
get me(): boolean;
|
|
142
|
+
get author(): string;
|
|
143
|
+
get edited(): boolean;
|
|
144
|
+
get type(): import("./Message").MessageType;
|
|
145
|
+
get caption(): string;
|
|
146
|
+
get mime(): string;
|
|
147
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
148
|
+
get starred(): boolean;
|
|
149
|
+
get forwarded(): boolean;
|
|
150
|
+
get created_at(): number;
|
|
151
|
+
get deleted_at(): number | null;
|
|
152
152
|
} | null>;
|
|
153
153
|
video(cid: string, buffer: Buffer, caption?: string): Promise<{
|
|
154
154
|
content(): Promise<Buffer>;
|
|
155
155
|
readonly index: import("./Message").IMessageIndex;
|
|
156
156
|
readonly raw: import("baileys").WAMessage;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
157
|
+
get id(): string;
|
|
158
|
+
get cid(): string;
|
|
159
|
+
get mid(): string | null;
|
|
160
|
+
get me(): boolean;
|
|
161
|
+
get author(): string;
|
|
162
|
+
get edited(): boolean;
|
|
163
|
+
get type(): import("./Message").MessageType;
|
|
164
|
+
get caption(): string;
|
|
165
|
+
get mime(): string;
|
|
166
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
167
|
+
get starred(): boolean;
|
|
168
|
+
get forwarded(): boolean;
|
|
169
|
+
get created_at(): number;
|
|
170
|
+
get deleted_at(): number | null;
|
|
171
171
|
} | null>;
|
|
172
172
|
audio(cid: string, buffer: Buffer, ptt?: boolean): Promise<{
|
|
173
173
|
content(): Promise<Buffer>;
|
|
174
174
|
readonly index: import("./Message").IMessageIndex;
|
|
175
175
|
readonly raw: import("baileys").WAMessage;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
176
|
+
get id(): string;
|
|
177
|
+
get cid(): string;
|
|
178
|
+
get mid(): string | null;
|
|
179
|
+
get me(): boolean;
|
|
180
|
+
get author(): string;
|
|
181
|
+
get edited(): boolean;
|
|
182
|
+
get type(): import("./Message").MessageType;
|
|
183
|
+
get caption(): string;
|
|
184
|
+
get mime(): string;
|
|
185
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
186
|
+
get starred(): boolean;
|
|
187
|
+
get forwarded(): boolean;
|
|
188
|
+
get created_at(): number;
|
|
189
|
+
get deleted_at(): number | null;
|
|
190
190
|
} | null>;
|
|
191
191
|
location(cid: string, opts: import("./Message").LocationOptions): Promise<{
|
|
192
192
|
content(): Promise<Buffer>;
|
|
193
193
|
readonly index: import("./Message").IMessageIndex;
|
|
194
194
|
readonly raw: import("baileys").WAMessage;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
195
|
+
get id(): string;
|
|
196
|
+
get cid(): string;
|
|
197
|
+
get mid(): string | null;
|
|
198
|
+
get me(): boolean;
|
|
199
|
+
get author(): string;
|
|
200
|
+
get edited(): boolean;
|
|
201
|
+
get type(): import("./Message").MessageType;
|
|
202
|
+
get caption(): string;
|
|
203
|
+
get mime(): string;
|
|
204
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
205
|
+
get starred(): boolean;
|
|
206
|
+
get forwarded(): boolean;
|
|
207
|
+
get created_at(): number;
|
|
208
|
+
get deleted_at(): number | null;
|
|
209
209
|
} | null>;
|
|
210
210
|
poll(cid: string, opts: import("./Message").PollOptions): Promise<{
|
|
211
211
|
content(): Promise<Buffer>;
|
|
212
212
|
readonly index: import("./Message").IMessageIndex;
|
|
213
213
|
readonly raw: import("baileys").WAMessage;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
214
|
+
get id(): string;
|
|
215
|
+
get cid(): string;
|
|
216
|
+
get mid(): string | null;
|
|
217
|
+
get me(): boolean;
|
|
218
|
+
get author(): string;
|
|
219
|
+
get edited(): boolean;
|
|
220
|
+
get type(): import("./Message").MessageType;
|
|
221
|
+
get caption(): string;
|
|
222
|
+
get mime(): string;
|
|
223
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
224
|
+
get starred(): boolean;
|
|
225
|
+
get forwarded(): boolean;
|
|
226
|
+
get created_at(): number;
|
|
227
|
+
get deleted_at(): number | null;
|
|
228
228
|
} | null>;
|
|
229
229
|
watch(cid: string, mid: string, handler: (msg: InstanceType</*elided*/ any>) => void): () => void;
|
|
230
230
|
notify(cid: string, mid: string): void;
|
|
231
231
|
}>[]>;
|
|
232
232
|
refresh(): Promise</*elided*/ any | null>;
|
|
233
233
|
readonly raw: import("./Chat").IChatRaw;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
234
|
+
get id(): string;
|
|
235
|
+
get type(): "contact" | "group";
|
|
236
|
+
get name(): string;
|
|
237
|
+
get content(): string;
|
|
238
|
+
get pined(): boolean;
|
|
239
|
+
get archived(): boolean;
|
|
240
|
+
get muted(): number | false;
|
|
241
|
+
get readed(): boolean;
|
|
242
|
+
get readonly(): boolean;
|
|
243
243
|
} | null>;
|
|
244
244
|
readonly raw: IContactRaw;
|
|
245
245
|
/** JID único del contacto */
|
|
246
|
-
|
|
246
|
+
get id(): string;
|
|
247
247
|
/** Nombre del contacto */
|
|
248
|
-
|
|
248
|
+
get name(): string;
|
|
249
249
|
/** URL de la foto de perfil o null */
|
|
250
|
-
|
|
250
|
+
get photo(): string | null;
|
|
251
251
|
/** Número de teléfono sin formato */
|
|
252
|
-
|
|
252
|
+
get phone(): string;
|
|
253
253
|
/** Bio del contacto */
|
|
254
|
-
|
|
254
|
+
get content(): string;
|
|
255
255
|
};
|
|
256
256
|
/**
|
|
257
257
|
* @description Obtiene un contacto por su ID.
|
|
@@ -280,20 +280,20 @@ export declare function contact(wa: WhatsApp): {
|
|
|
280
280
|
content(): Promise<Buffer>;
|
|
281
281
|
readonly index: import("./Message").IMessageIndex;
|
|
282
282
|
readonly raw: import("baileys").WAMessage;
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
283
|
+
get id(): string;
|
|
284
|
+
get cid(): string;
|
|
285
|
+
get mid(): string | null;
|
|
286
|
+
get me(): boolean;
|
|
287
|
+
get author(): string;
|
|
288
|
+
get edited(): boolean;
|
|
289
|
+
get type(): import("./Message").MessageType;
|
|
290
|
+
get caption(): string;
|
|
291
|
+
get mime(): string;
|
|
292
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
293
|
+
get starred(): boolean;
|
|
294
|
+
get forwarded(): boolean;
|
|
295
|
+
get created_at(): number;
|
|
296
|
+
get deleted_at(): number | null;
|
|
297
297
|
};
|
|
298
298
|
get(cid: string, mid: string): Promise<InstanceType</*elided*/ any> | null>;
|
|
299
299
|
react(cid: string, mid: string, emoji: string): Promise<boolean>;
|
|
@@ -304,142 +304,142 @@ export declare function contact(wa: WhatsApp): {
|
|
|
304
304
|
content(): Promise<Buffer>;
|
|
305
305
|
readonly index: import("./Message").IMessageIndex;
|
|
306
306
|
readonly raw: import("baileys").WAMessage;
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
307
|
+
get id(): string;
|
|
308
|
+
get cid(): string;
|
|
309
|
+
get mid(): string | null;
|
|
310
|
+
get me(): boolean;
|
|
311
|
+
get author(): string;
|
|
312
|
+
get edited(): boolean;
|
|
313
|
+
get type(): import("./Message").MessageType;
|
|
314
|
+
get caption(): string;
|
|
315
|
+
get mime(): string;
|
|
316
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
317
|
+
get starred(): boolean;
|
|
318
|
+
get forwarded(): boolean;
|
|
319
|
+
get created_at(): number;
|
|
320
|
+
get deleted_at(): number | null;
|
|
321
321
|
} | null>;
|
|
322
322
|
image(cid: string, buffer: Buffer, caption?: string): Promise<{
|
|
323
323
|
content(): Promise<Buffer>;
|
|
324
324
|
readonly index: import("./Message").IMessageIndex;
|
|
325
325
|
readonly raw: import("baileys").WAMessage;
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
326
|
+
get id(): string;
|
|
327
|
+
get cid(): string;
|
|
328
|
+
get mid(): string | null;
|
|
329
|
+
get me(): boolean;
|
|
330
|
+
get author(): string;
|
|
331
|
+
get edited(): boolean;
|
|
332
|
+
get type(): import("./Message").MessageType;
|
|
333
|
+
get caption(): string;
|
|
334
|
+
get mime(): string;
|
|
335
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
336
|
+
get starred(): boolean;
|
|
337
|
+
get forwarded(): boolean;
|
|
338
|
+
get created_at(): number;
|
|
339
|
+
get deleted_at(): number | null;
|
|
340
340
|
} | null>;
|
|
341
341
|
video(cid: string, buffer: Buffer, caption?: string): Promise<{
|
|
342
342
|
content(): Promise<Buffer>;
|
|
343
343
|
readonly index: import("./Message").IMessageIndex;
|
|
344
344
|
readonly raw: import("baileys").WAMessage;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
345
|
+
get id(): string;
|
|
346
|
+
get cid(): string;
|
|
347
|
+
get mid(): string | null;
|
|
348
|
+
get me(): boolean;
|
|
349
|
+
get author(): string;
|
|
350
|
+
get edited(): boolean;
|
|
351
|
+
get type(): import("./Message").MessageType;
|
|
352
|
+
get caption(): string;
|
|
353
|
+
get mime(): string;
|
|
354
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
355
|
+
get starred(): boolean;
|
|
356
|
+
get forwarded(): boolean;
|
|
357
|
+
get created_at(): number;
|
|
358
|
+
get deleted_at(): number | null;
|
|
359
359
|
} | null>;
|
|
360
360
|
audio(cid: string, buffer: Buffer, ptt?: boolean): Promise<{
|
|
361
361
|
content(): Promise<Buffer>;
|
|
362
362
|
readonly index: import("./Message").IMessageIndex;
|
|
363
363
|
readonly raw: import("baileys").WAMessage;
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
364
|
+
get id(): string;
|
|
365
|
+
get cid(): string;
|
|
366
|
+
get mid(): string | null;
|
|
367
|
+
get me(): boolean;
|
|
368
|
+
get author(): string;
|
|
369
|
+
get edited(): boolean;
|
|
370
|
+
get type(): import("./Message").MessageType;
|
|
371
|
+
get caption(): string;
|
|
372
|
+
get mime(): string;
|
|
373
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
374
|
+
get starred(): boolean;
|
|
375
|
+
get forwarded(): boolean;
|
|
376
|
+
get created_at(): number;
|
|
377
|
+
get deleted_at(): number | null;
|
|
378
378
|
} | null>;
|
|
379
379
|
location(cid: string, opts: import("./Message").LocationOptions): Promise<{
|
|
380
380
|
content(): Promise<Buffer>;
|
|
381
381
|
readonly index: import("./Message").IMessageIndex;
|
|
382
382
|
readonly raw: import("baileys").WAMessage;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
383
|
+
get id(): string;
|
|
384
|
+
get cid(): string;
|
|
385
|
+
get mid(): string | null;
|
|
386
|
+
get me(): boolean;
|
|
387
|
+
get author(): string;
|
|
388
|
+
get edited(): boolean;
|
|
389
|
+
get type(): import("./Message").MessageType;
|
|
390
|
+
get caption(): string;
|
|
391
|
+
get mime(): string;
|
|
392
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
393
|
+
get starred(): boolean;
|
|
394
|
+
get forwarded(): boolean;
|
|
395
|
+
get created_at(): number;
|
|
396
|
+
get deleted_at(): number | null;
|
|
397
397
|
} | null>;
|
|
398
398
|
poll(cid: string, opts: import("./Message").PollOptions): Promise<{
|
|
399
399
|
content(): Promise<Buffer>;
|
|
400
400
|
readonly index: import("./Message").IMessageIndex;
|
|
401
401
|
readonly raw: import("baileys").WAMessage;
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
402
|
+
get id(): string;
|
|
403
|
+
get cid(): string;
|
|
404
|
+
get mid(): string | null;
|
|
405
|
+
get me(): boolean;
|
|
406
|
+
get author(): string;
|
|
407
|
+
get edited(): boolean;
|
|
408
|
+
get type(): import("./Message").MessageType;
|
|
409
|
+
get caption(): string;
|
|
410
|
+
get mime(): string;
|
|
411
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
412
|
+
get starred(): boolean;
|
|
413
|
+
get forwarded(): boolean;
|
|
414
|
+
get created_at(): number;
|
|
415
|
+
get deleted_at(): number | null;
|
|
416
416
|
} | null>;
|
|
417
417
|
watch(cid: string, mid: string, handler: (msg: InstanceType</*elided*/ any>) => void): () => void;
|
|
418
418
|
notify(cid: string, mid: string): void;
|
|
419
419
|
}>[]>;
|
|
420
420
|
refresh(): Promise</*elided*/ any | null>;
|
|
421
421
|
readonly raw: import("./Chat").IChatRaw;
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
422
|
+
get id(): string;
|
|
423
|
+
get type(): "contact" | "group";
|
|
424
|
+
get name(): string;
|
|
425
|
+
get content(): string;
|
|
426
|
+
get pined(): boolean;
|
|
427
|
+
get archived(): boolean;
|
|
428
|
+
get muted(): number | false;
|
|
429
|
+
get readed(): boolean;
|
|
430
|
+
get readonly(): boolean;
|
|
431
431
|
} | null>;
|
|
432
432
|
readonly raw: IContactRaw;
|
|
433
433
|
/** JID único del contacto */
|
|
434
|
-
|
|
434
|
+
get id(): string;
|
|
435
435
|
/** Nombre del contacto */
|
|
436
|
-
|
|
436
|
+
get name(): string;
|
|
437
437
|
/** URL de la foto de perfil o null */
|
|
438
|
-
|
|
438
|
+
get photo(): string | null;
|
|
439
439
|
/** Número de teléfono sin formato */
|
|
440
|
-
|
|
440
|
+
get phone(): string;
|
|
441
441
|
/** Bio del contacto */
|
|
442
|
-
|
|
442
|
+
get content(): string;
|
|
443
443
|
} | null>;
|
|
444
444
|
/**
|
|
445
445
|
* @description Actualiza los datos del perfil desde WhatsApp.
|
|
@@ -468,20 +468,20 @@ export declare function contact(wa: WhatsApp): {
|
|
|
468
468
|
content(): Promise<Buffer>;
|
|
469
469
|
readonly index: import("./Message").IMessageIndex;
|
|
470
470
|
readonly raw: import("baileys").WAMessage;
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
471
|
+
get id(): string;
|
|
472
|
+
get cid(): string;
|
|
473
|
+
get mid(): string | null;
|
|
474
|
+
get me(): boolean;
|
|
475
|
+
get author(): string;
|
|
476
|
+
get edited(): boolean;
|
|
477
|
+
get type(): import("./Message").MessageType;
|
|
478
|
+
get caption(): string;
|
|
479
|
+
get mime(): string;
|
|
480
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
481
|
+
get starred(): boolean;
|
|
482
|
+
get forwarded(): boolean;
|
|
483
|
+
get created_at(): number;
|
|
484
|
+
get deleted_at(): number | null;
|
|
485
485
|
};
|
|
486
486
|
get(cid: string, mid: string): Promise<InstanceType</*elided*/ any> | null>;
|
|
487
487
|
react(cid: string, mid: string, emoji: string): Promise<boolean>;
|
|
@@ -492,142 +492,142 @@ export declare function contact(wa: WhatsApp): {
|
|
|
492
492
|
content(): Promise<Buffer>;
|
|
493
493
|
readonly index: import("./Message").IMessageIndex;
|
|
494
494
|
readonly raw: import("baileys").WAMessage;
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
495
|
+
get id(): string;
|
|
496
|
+
get cid(): string;
|
|
497
|
+
get mid(): string | null;
|
|
498
|
+
get me(): boolean;
|
|
499
|
+
get author(): string;
|
|
500
|
+
get edited(): boolean;
|
|
501
|
+
get type(): import("./Message").MessageType;
|
|
502
|
+
get caption(): string;
|
|
503
|
+
get mime(): string;
|
|
504
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
505
|
+
get starred(): boolean;
|
|
506
|
+
get forwarded(): boolean;
|
|
507
|
+
get created_at(): number;
|
|
508
|
+
get deleted_at(): number | null;
|
|
509
509
|
} | null>;
|
|
510
510
|
image(cid: string, buffer: Buffer, caption?: string): Promise<{
|
|
511
511
|
content(): Promise<Buffer>;
|
|
512
512
|
readonly index: import("./Message").IMessageIndex;
|
|
513
513
|
readonly raw: import("baileys").WAMessage;
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
514
|
+
get id(): string;
|
|
515
|
+
get cid(): string;
|
|
516
|
+
get mid(): string | null;
|
|
517
|
+
get me(): boolean;
|
|
518
|
+
get author(): string;
|
|
519
|
+
get edited(): boolean;
|
|
520
|
+
get type(): import("./Message").MessageType;
|
|
521
|
+
get caption(): string;
|
|
522
|
+
get mime(): string;
|
|
523
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
524
|
+
get starred(): boolean;
|
|
525
|
+
get forwarded(): boolean;
|
|
526
|
+
get created_at(): number;
|
|
527
|
+
get deleted_at(): number | null;
|
|
528
528
|
} | null>;
|
|
529
529
|
video(cid: string, buffer: Buffer, caption?: string): Promise<{
|
|
530
530
|
content(): Promise<Buffer>;
|
|
531
531
|
readonly index: import("./Message").IMessageIndex;
|
|
532
532
|
readonly raw: import("baileys").WAMessage;
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
533
|
+
get id(): string;
|
|
534
|
+
get cid(): string;
|
|
535
|
+
get mid(): string | null;
|
|
536
|
+
get me(): boolean;
|
|
537
|
+
get author(): string;
|
|
538
|
+
get edited(): boolean;
|
|
539
|
+
get type(): import("./Message").MessageType;
|
|
540
|
+
get caption(): string;
|
|
541
|
+
get mime(): string;
|
|
542
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
543
|
+
get starred(): boolean;
|
|
544
|
+
get forwarded(): boolean;
|
|
545
|
+
get created_at(): number;
|
|
546
|
+
get deleted_at(): number | null;
|
|
547
547
|
} | null>;
|
|
548
548
|
audio(cid: string, buffer: Buffer, ptt?: boolean): Promise<{
|
|
549
549
|
content(): Promise<Buffer>;
|
|
550
550
|
readonly index: import("./Message").IMessageIndex;
|
|
551
551
|
readonly raw: import("baileys").WAMessage;
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
552
|
+
get id(): string;
|
|
553
|
+
get cid(): string;
|
|
554
|
+
get mid(): string | null;
|
|
555
|
+
get me(): boolean;
|
|
556
|
+
get author(): string;
|
|
557
|
+
get edited(): boolean;
|
|
558
|
+
get type(): import("./Message").MessageType;
|
|
559
|
+
get caption(): string;
|
|
560
|
+
get mime(): string;
|
|
561
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
562
|
+
get starred(): boolean;
|
|
563
|
+
get forwarded(): boolean;
|
|
564
|
+
get created_at(): number;
|
|
565
|
+
get deleted_at(): number | null;
|
|
566
566
|
} | null>;
|
|
567
567
|
location(cid: string, opts: import("./Message").LocationOptions): Promise<{
|
|
568
568
|
content(): Promise<Buffer>;
|
|
569
569
|
readonly index: import("./Message").IMessageIndex;
|
|
570
570
|
readonly raw: import("baileys").WAMessage;
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
571
|
+
get id(): string;
|
|
572
|
+
get cid(): string;
|
|
573
|
+
get mid(): string | null;
|
|
574
|
+
get me(): boolean;
|
|
575
|
+
get author(): string;
|
|
576
|
+
get edited(): boolean;
|
|
577
|
+
get type(): import("./Message").MessageType;
|
|
578
|
+
get caption(): string;
|
|
579
|
+
get mime(): string;
|
|
580
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
581
|
+
get starred(): boolean;
|
|
582
|
+
get forwarded(): boolean;
|
|
583
|
+
get created_at(): number;
|
|
584
|
+
get deleted_at(): number | null;
|
|
585
585
|
} | null>;
|
|
586
586
|
poll(cid: string, opts: import("./Message").PollOptions): Promise<{
|
|
587
587
|
content(): Promise<Buffer>;
|
|
588
588
|
readonly index: import("./Message").IMessageIndex;
|
|
589
589
|
readonly raw: import("baileys").WAMessage;
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
590
|
+
get id(): string;
|
|
591
|
+
get cid(): string;
|
|
592
|
+
get mid(): string | null;
|
|
593
|
+
get me(): boolean;
|
|
594
|
+
get author(): string;
|
|
595
|
+
get edited(): boolean;
|
|
596
|
+
get type(): import("./Message").MessageType;
|
|
597
|
+
get caption(): string;
|
|
598
|
+
get mime(): string;
|
|
599
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
600
|
+
get starred(): boolean;
|
|
601
|
+
get forwarded(): boolean;
|
|
602
|
+
get created_at(): number;
|
|
603
|
+
get deleted_at(): number | null;
|
|
604
604
|
} | null>;
|
|
605
605
|
watch(cid: string, mid: string, handler: (msg: InstanceType</*elided*/ any>) => void): () => void;
|
|
606
606
|
notify(cid: string, mid: string): void;
|
|
607
607
|
}>[]>;
|
|
608
608
|
refresh(): Promise</*elided*/ any | null>;
|
|
609
609
|
readonly raw: import("./Chat").IChatRaw;
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
610
|
+
get id(): string;
|
|
611
|
+
get type(): "contact" | "group";
|
|
612
|
+
get name(): string;
|
|
613
|
+
get content(): string;
|
|
614
|
+
get pined(): boolean;
|
|
615
|
+
get archived(): boolean;
|
|
616
|
+
get muted(): number | false;
|
|
617
|
+
get readed(): boolean;
|
|
618
|
+
get readonly(): boolean;
|
|
619
619
|
} | null>;
|
|
620
620
|
readonly raw: IContactRaw;
|
|
621
621
|
/** JID único del contacto */
|
|
622
|
-
|
|
622
|
+
get id(): string;
|
|
623
623
|
/** Nombre del contacto */
|
|
624
|
-
|
|
624
|
+
get name(): string;
|
|
625
625
|
/** URL de la foto de perfil o null */
|
|
626
|
-
|
|
626
|
+
get photo(): string | null;
|
|
627
627
|
/** Número de teléfono sin formato */
|
|
628
|
-
|
|
628
|
+
get phone(): string;
|
|
629
629
|
/** Bio del contacto */
|
|
630
|
-
|
|
630
|
+
get content(): string;
|
|
631
631
|
} | null>;
|
|
632
632
|
/**
|
|
633
633
|
* @description Cambia el nombre de un contacto.
|
|
@@ -664,20 +664,20 @@ export declare function contact(wa: WhatsApp): {
|
|
|
664
664
|
content(): Promise<Buffer>;
|
|
665
665
|
readonly index: import("./Message").IMessageIndex;
|
|
666
666
|
readonly raw: import("baileys").WAMessage;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
667
|
+
get id(): string;
|
|
668
|
+
get cid(): string;
|
|
669
|
+
get mid(): string | null;
|
|
670
|
+
get me(): boolean;
|
|
671
|
+
get author(): string;
|
|
672
|
+
get edited(): boolean;
|
|
673
|
+
get type(): import("./Message").MessageType;
|
|
674
|
+
get caption(): string;
|
|
675
|
+
get mime(): string;
|
|
676
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
677
|
+
get starred(): boolean;
|
|
678
|
+
get forwarded(): boolean;
|
|
679
|
+
get created_at(): number;
|
|
680
|
+
get deleted_at(): number | null;
|
|
681
681
|
};
|
|
682
682
|
get(cid: string, mid: string): Promise<InstanceType</*elided*/ any> | null>;
|
|
683
683
|
react(cid: string, mid: string, emoji: string): Promise<boolean>;
|
|
@@ -688,141 +688,141 @@ export declare function contact(wa: WhatsApp): {
|
|
|
688
688
|
content(): Promise<Buffer>;
|
|
689
689
|
readonly index: import("./Message").IMessageIndex;
|
|
690
690
|
readonly raw: import("baileys").WAMessage;
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
691
|
+
get id(): string;
|
|
692
|
+
get cid(): string;
|
|
693
|
+
get mid(): string | null;
|
|
694
|
+
get me(): boolean;
|
|
695
|
+
get author(): string;
|
|
696
|
+
get edited(): boolean;
|
|
697
|
+
get type(): import("./Message").MessageType;
|
|
698
|
+
get caption(): string;
|
|
699
|
+
get mime(): string;
|
|
700
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
701
|
+
get starred(): boolean;
|
|
702
|
+
get forwarded(): boolean;
|
|
703
|
+
get created_at(): number;
|
|
704
|
+
get deleted_at(): number | null;
|
|
705
705
|
} | null>;
|
|
706
706
|
image(cid: string, buffer: Buffer, caption?: string): Promise<{
|
|
707
707
|
content(): Promise<Buffer>;
|
|
708
708
|
readonly index: import("./Message").IMessageIndex;
|
|
709
709
|
readonly raw: import("baileys").WAMessage;
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
710
|
+
get id(): string;
|
|
711
|
+
get cid(): string;
|
|
712
|
+
get mid(): string | null;
|
|
713
|
+
get me(): boolean;
|
|
714
|
+
get author(): string;
|
|
715
|
+
get edited(): boolean;
|
|
716
|
+
get type(): import("./Message").MessageType;
|
|
717
|
+
get caption(): string;
|
|
718
|
+
get mime(): string;
|
|
719
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
720
|
+
get starred(): boolean;
|
|
721
|
+
get forwarded(): boolean;
|
|
722
|
+
get created_at(): number;
|
|
723
|
+
get deleted_at(): number | null;
|
|
724
724
|
} | null>;
|
|
725
725
|
video(cid: string, buffer: Buffer, caption?: string): Promise<{
|
|
726
726
|
content(): Promise<Buffer>;
|
|
727
727
|
readonly index: import("./Message").IMessageIndex;
|
|
728
728
|
readonly raw: import("baileys").WAMessage;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
729
|
+
get id(): string;
|
|
730
|
+
get cid(): string;
|
|
731
|
+
get mid(): string | null;
|
|
732
|
+
get me(): boolean;
|
|
733
|
+
get author(): string;
|
|
734
|
+
get edited(): boolean;
|
|
735
|
+
get type(): import("./Message").MessageType;
|
|
736
|
+
get caption(): string;
|
|
737
|
+
get mime(): string;
|
|
738
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
739
|
+
get starred(): boolean;
|
|
740
|
+
get forwarded(): boolean;
|
|
741
|
+
get created_at(): number;
|
|
742
|
+
get deleted_at(): number | null;
|
|
743
743
|
} | null>;
|
|
744
744
|
audio(cid: string, buffer: Buffer, ptt?: boolean): Promise<{
|
|
745
745
|
content(): Promise<Buffer>;
|
|
746
746
|
readonly index: import("./Message").IMessageIndex;
|
|
747
747
|
readonly raw: import("baileys").WAMessage;
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
748
|
+
get id(): string;
|
|
749
|
+
get cid(): string;
|
|
750
|
+
get mid(): string | null;
|
|
751
|
+
get me(): boolean;
|
|
752
|
+
get author(): string;
|
|
753
|
+
get edited(): boolean;
|
|
754
|
+
get type(): import("./Message").MessageType;
|
|
755
|
+
get caption(): string;
|
|
756
|
+
get mime(): string;
|
|
757
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
758
|
+
get starred(): boolean;
|
|
759
|
+
get forwarded(): boolean;
|
|
760
|
+
get created_at(): number;
|
|
761
|
+
get deleted_at(): number | null;
|
|
762
762
|
} | null>;
|
|
763
763
|
location(cid: string, opts: import("./Message").LocationOptions): Promise<{
|
|
764
764
|
content(): Promise<Buffer>;
|
|
765
765
|
readonly index: import("./Message").IMessageIndex;
|
|
766
766
|
readonly raw: import("baileys").WAMessage;
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
767
|
+
get id(): string;
|
|
768
|
+
get cid(): string;
|
|
769
|
+
get mid(): string | null;
|
|
770
|
+
get me(): boolean;
|
|
771
|
+
get author(): string;
|
|
772
|
+
get edited(): boolean;
|
|
773
|
+
get type(): import("./Message").MessageType;
|
|
774
|
+
get caption(): string;
|
|
775
|
+
get mime(): string;
|
|
776
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
777
|
+
get starred(): boolean;
|
|
778
|
+
get forwarded(): boolean;
|
|
779
|
+
get created_at(): number;
|
|
780
|
+
get deleted_at(): number | null;
|
|
781
781
|
} | null>;
|
|
782
782
|
poll(cid: string, opts: import("./Message").PollOptions): Promise<{
|
|
783
783
|
content(): Promise<Buffer>;
|
|
784
784
|
readonly index: import("./Message").IMessageIndex;
|
|
785
785
|
readonly raw: import("baileys").WAMessage;
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
786
|
+
get id(): string;
|
|
787
|
+
get cid(): string;
|
|
788
|
+
get mid(): string | null;
|
|
789
|
+
get me(): boolean;
|
|
790
|
+
get author(): string;
|
|
791
|
+
get edited(): boolean;
|
|
792
|
+
get type(): import("./Message").MessageType;
|
|
793
|
+
get caption(): string;
|
|
794
|
+
get mime(): string;
|
|
795
|
+
get status(): import("./Message").MESSAGE_STATUS;
|
|
796
|
+
get starred(): boolean;
|
|
797
|
+
get forwarded(): boolean;
|
|
798
|
+
get created_at(): number;
|
|
799
|
+
get deleted_at(): number | null;
|
|
800
800
|
} | null>;
|
|
801
801
|
watch(cid: string, mid: string, handler: (msg: InstanceType</*elided*/ any>) => void): () => void;
|
|
802
802
|
notify(cid: string, mid: string): void;
|
|
803
803
|
}>[]>;
|
|
804
804
|
refresh(): Promise</*elided*/ any | null>;
|
|
805
805
|
readonly raw: import("./Chat").IChatRaw;
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
806
|
+
get id(): string;
|
|
807
|
+
get type(): "contact" | "group";
|
|
808
|
+
get name(): string;
|
|
809
|
+
get content(): string;
|
|
810
|
+
get pined(): boolean;
|
|
811
|
+
get archived(): boolean;
|
|
812
|
+
get muted(): number | false;
|
|
813
|
+
get readed(): boolean;
|
|
814
|
+
get readonly(): boolean;
|
|
815
815
|
} | null>;
|
|
816
816
|
readonly raw: IContactRaw;
|
|
817
817
|
/** JID único del contacto */
|
|
818
|
-
|
|
818
|
+
get id(): string;
|
|
819
819
|
/** Nombre del contacto */
|
|
820
|
-
|
|
820
|
+
get name(): string;
|
|
821
821
|
/** URL de la foto de perfil o null */
|
|
822
|
-
|
|
822
|
+
get photo(): string | null;
|
|
823
823
|
/** Número de teléfono sin formato */
|
|
824
|
-
|
|
824
|
+
get phone(): string;
|
|
825
825
|
/** Bio del contacto */
|
|
826
|
-
|
|
826
|
+
get content(): string;
|
|
827
827
|
}[]>;
|
|
828
828
|
};
|