@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.
@@ -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
- readonly id: string;
96
- readonly cid: string;
97
- readonly mid: string | null;
98
- readonly me: boolean;
99
- readonly author: string;
100
- readonly edited: boolean;
101
- readonly type: import("./Message").MessageType;
102
- readonly caption: string;
103
- readonly mime: string;
104
- readonly status: import("./Message").MESSAGE_STATUS;
105
- readonly starred: boolean;
106
- readonly forwarded: boolean;
107
- readonly created_at: number;
108
- readonly deleted_at: number | null;
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
- readonly id: string;
120
- readonly cid: string;
121
- readonly mid: string | null;
122
- readonly me: boolean;
123
- readonly author: string;
124
- readonly edited: boolean;
125
- readonly type: import("./Message").MessageType;
126
- readonly caption: string;
127
- readonly mime: string;
128
- readonly status: import("./Message").MESSAGE_STATUS;
129
- readonly starred: boolean;
130
- readonly forwarded: boolean;
131
- readonly created_at: number;
132
- readonly deleted_at: number | null;
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
- readonly id: string;
139
- readonly cid: string;
140
- readonly mid: string | null;
141
- readonly me: boolean;
142
- readonly author: string;
143
- readonly edited: boolean;
144
- readonly type: import("./Message").MessageType;
145
- readonly caption: string;
146
- readonly mime: string;
147
- readonly status: import("./Message").MESSAGE_STATUS;
148
- readonly starred: boolean;
149
- readonly forwarded: boolean;
150
- readonly created_at: number;
151
- readonly deleted_at: number | null;
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
- readonly id: string;
158
- readonly cid: string;
159
- readonly mid: string | null;
160
- readonly me: boolean;
161
- readonly author: string;
162
- readonly edited: boolean;
163
- readonly type: import("./Message").MessageType;
164
- readonly caption: string;
165
- readonly mime: string;
166
- readonly status: import("./Message").MESSAGE_STATUS;
167
- readonly starred: boolean;
168
- readonly forwarded: boolean;
169
- readonly created_at: number;
170
- readonly deleted_at: number | null;
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
- readonly id: string;
177
- readonly cid: string;
178
- readonly mid: string | null;
179
- readonly me: boolean;
180
- readonly author: string;
181
- readonly edited: boolean;
182
- readonly type: import("./Message").MessageType;
183
- readonly caption: string;
184
- readonly mime: string;
185
- readonly status: import("./Message").MESSAGE_STATUS;
186
- readonly starred: boolean;
187
- readonly forwarded: boolean;
188
- readonly created_at: number;
189
- readonly deleted_at: number | null;
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
- readonly id: string;
196
- readonly cid: string;
197
- readonly mid: string | null;
198
- readonly me: boolean;
199
- readonly author: string;
200
- readonly edited: boolean;
201
- readonly type: import("./Message").MessageType;
202
- readonly caption: string;
203
- readonly mime: string;
204
- readonly status: import("./Message").MESSAGE_STATUS;
205
- readonly starred: boolean;
206
- readonly forwarded: boolean;
207
- readonly created_at: number;
208
- readonly deleted_at: number | null;
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
- readonly id: string;
215
- readonly cid: string;
216
- readonly mid: string | null;
217
- readonly me: boolean;
218
- readonly author: string;
219
- readonly edited: boolean;
220
- readonly type: import("./Message").MessageType;
221
- readonly caption: string;
222
- readonly mime: string;
223
- readonly status: import("./Message").MESSAGE_STATUS;
224
- readonly starred: boolean;
225
- readonly forwarded: boolean;
226
- readonly created_at: number;
227
- readonly deleted_at: number | null;
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
- readonly id: string;
235
- readonly type: "contact" | "group";
236
- readonly name: string;
237
- readonly content: string;
238
- readonly pined: boolean;
239
- readonly archived: boolean;
240
- readonly muted: number | false;
241
- readonly readed: boolean;
242
- readonly readonly: boolean;
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
- readonly id: string;
246
+ get id(): string;
247
247
  /** Nombre del contacto */
248
- readonly name: string;
248
+ get name(): string;
249
249
  /** URL de la foto de perfil o null */
250
- readonly photo: string | null;
250
+ get photo(): string | null;
251
251
  /** Número de teléfono sin formato */
252
- readonly phone: string;
252
+ get phone(): string;
253
253
  /** Bio del contacto */
254
- readonly content: string;
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
- readonly id: string;
284
- readonly cid: string;
285
- readonly mid: string | null;
286
- readonly me: boolean;
287
- readonly author: string;
288
- readonly edited: boolean;
289
- readonly type: import("./Message").MessageType;
290
- readonly caption: string;
291
- readonly mime: string;
292
- readonly status: import("./Message").MESSAGE_STATUS;
293
- readonly starred: boolean;
294
- readonly forwarded: boolean;
295
- readonly created_at: number;
296
- readonly deleted_at: number | null;
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
- readonly id: string;
308
- readonly cid: string;
309
- readonly mid: string | null;
310
- readonly me: boolean;
311
- readonly author: string;
312
- readonly edited: boolean;
313
- readonly type: import("./Message").MessageType;
314
- readonly caption: string;
315
- readonly mime: string;
316
- readonly status: import("./Message").MESSAGE_STATUS;
317
- readonly starred: boolean;
318
- readonly forwarded: boolean;
319
- readonly created_at: number;
320
- readonly deleted_at: number | null;
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
- readonly id: string;
327
- readonly cid: string;
328
- readonly mid: string | null;
329
- readonly me: boolean;
330
- readonly author: string;
331
- readonly edited: boolean;
332
- readonly type: import("./Message").MessageType;
333
- readonly caption: string;
334
- readonly mime: string;
335
- readonly status: import("./Message").MESSAGE_STATUS;
336
- readonly starred: boolean;
337
- readonly forwarded: boolean;
338
- readonly created_at: number;
339
- readonly deleted_at: number | null;
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
- readonly id: string;
346
- readonly cid: string;
347
- readonly mid: string | null;
348
- readonly me: boolean;
349
- readonly author: string;
350
- readonly edited: boolean;
351
- readonly type: import("./Message").MessageType;
352
- readonly caption: string;
353
- readonly mime: string;
354
- readonly status: import("./Message").MESSAGE_STATUS;
355
- readonly starred: boolean;
356
- readonly forwarded: boolean;
357
- readonly created_at: number;
358
- readonly deleted_at: number | null;
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
- readonly id: string;
365
- readonly cid: string;
366
- readonly mid: string | null;
367
- readonly me: boolean;
368
- readonly author: string;
369
- readonly edited: boolean;
370
- readonly type: import("./Message").MessageType;
371
- readonly caption: string;
372
- readonly mime: string;
373
- readonly status: import("./Message").MESSAGE_STATUS;
374
- readonly starred: boolean;
375
- readonly forwarded: boolean;
376
- readonly created_at: number;
377
- readonly deleted_at: number | null;
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
- readonly id: string;
384
- readonly cid: string;
385
- readonly mid: string | null;
386
- readonly me: boolean;
387
- readonly author: string;
388
- readonly edited: boolean;
389
- readonly type: import("./Message").MessageType;
390
- readonly caption: string;
391
- readonly mime: string;
392
- readonly status: import("./Message").MESSAGE_STATUS;
393
- readonly starred: boolean;
394
- readonly forwarded: boolean;
395
- readonly created_at: number;
396
- readonly deleted_at: number | null;
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
- readonly id: string;
403
- readonly cid: string;
404
- readonly mid: string | null;
405
- readonly me: boolean;
406
- readonly author: string;
407
- readonly edited: boolean;
408
- readonly type: import("./Message").MessageType;
409
- readonly caption: string;
410
- readonly mime: string;
411
- readonly status: import("./Message").MESSAGE_STATUS;
412
- readonly starred: boolean;
413
- readonly forwarded: boolean;
414
- readonly created_at: number;
415
- readonly deleted_at: number | null;
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
- readonly id: string;
423
- readonly type: "contact" | "group";
424
- readonly name: string;
425
- readonly content: string;
426
- readonly pined: boolean;
427
- readonly archived: boolean;
428
- readonly muted: number | false;
429
- readonly readed: boolean;
430
- readonly readonly: boolean;
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
- readonly id: string;
434
+ get id(): string;
435
435
  /** Nombre del contacto */
436
- readonly name: string;
436
+ get name(): string;
437
437
  /** URL de la foto de perfil o null */
438
- readonly photo: string | null;
438
+ get photo(): string | null;
439
439
  /** Número de teléfono sin formato */
440
- readonly phone: string;
440
+ get phone(): string;
441
441
  /** Bio del contacto */
442
- readonly content: string;
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
- readonly id: string;
472
- readonly cid: string;
473
- readonly mid: string | null;
474
- readonly me: boolean;
475
- readonly author: string;
476
- readonly edited: boolean;
477
- readonly type: import("./Message").MessageType;
478
- readonly caption: string;
479
- readonly mime: string;
480
- readonly status: import("./Message").MESSAGE_STATUS;
481
- readonly starred: boolean;
482
- readonly forwarded: boolean;
483
- readonly created_at: number;
484
- readonly deleted_at: number | null;
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
- readonly id: string;
496
- readonly cid: string;
497
- readonly mid: string | null;
498
- readonly me: boolean;
499
- readonly author: string;
500
- readonly edited: boolean;
501
- readonly type: import("./Message").MessageType;
502
- readonly caption: string;
503
- readonly mime: string;
504
- readonly status: import("./Message").MESSAGE_STATUS;
505
- readonly starred: boolean;
506
- readonly forwarded: boolean;
507
- readonly created_at: number;
508
- readonly deleted_at: number | null;
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
- readonly id: string;
515
- readonly cid: string;
516
- readonly mid: string | null;
517
- readonly me: boolean;
518
- readonly author: string;
519
- readonly edited: boolean;
520
- readonly type: import("./Message").MessageType;
521
- readonly caption: string;
522
- readonly mime: string;
523
- readonly status: import("./Message").MESSAGE_STATUS;
524
- readonly starred: boolean;
525
- readonly forwarded: boolean;
526
- readonly created_at: number;
527
- readonly deleted_at: number | null;
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
- readonly id: string;
534
- readonly cid: string;
535
- readonly mid: string | null;
536
- readonly me: boolean;
537
- readonly author: string;
538
- readonly edited: boolean;
539
- readonly type: import("./Message").MessageType;
540
- readonly caption: string;
541
- readonly mime: string;
542
- readonly status: import("./Message").MESSAGE_STATUS;
543
- readonly starred: boolean;
544
- readonly forwarded: boolean;
545
- readonly created_at: number;
546
- readonly deleted_at: number | null;
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
- readonly id: string;
553
- readonly cid: string;
554
- readonly mid: string | null;
555
- readonly me: boolean;
556
- readonly author: string;
557
- readonly edited: boolean;
558
- readonly type: import("./Message").MessageType;
559
- readonly caption: string;
560
- readonly mime: string;
561
- readonly status: import("./Message").MESSAGE_STATUS;
562
- readonly starred: boolean;
563
- readonly forwarded: boolean;
564
- readonly created_at: number;
565
- readonly deleted_at: number | null;
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
- readonly id: string;
572
- readonly cid: string;
573
- readonly mid: string | null;
574
- readonly me: boolean;
575
- readonly author: string;
576
- readonly edited: boolean;
577
- readonly type: import("./Message").MessageType;
578
- readonly caption: string;
579
- readonly mime: string;
580
- readonly status: import("./Message").MESSAGE_STATUS;
581
- readonly starred: boolean;
582
- readonly forwarded: boolean;
583
- readonly created_at: number;
584
- readonly deleted_at: number | null;
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
- readonly id: string;
591
- readonly cid: string;
592
- readonly mid: string | null;
593
- readonly me: boolean;
594
- readonly author: string;
595
- readonly edited: boolean;
596
- readonly type: import("./Message").MessageType;
597
- readonly caption: string;
598
- readonly mime: string;
599
- readonly status: import("./Message").MESSAGE_STATUS;
600
- readonly starred: boolean;
601
- readonly forwarded: boolean;
602
- readonly created_at: number;
603
- readonly deleted_at: number | null;
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
- readonly id: string;
611
- readonly type: "contact" | "group";
612
- readonly name: string;
613
- readonly content: string;
614
- readonly pined: boolean;
615
- readonly archived: boolean;
616
- readonly muted: number | false;
617
- readonly readed: boolean;
618
- readonly readonly: boolean;
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
- readonly id: string;
622
+ get id(): string;
623
623
  /** Nombre del contacto */
624
- readonly name: string;
624
+ get name(): string;
625
625
  /** URL de la foto de perfil o null */
626
- readonly photo: string | null;
626
+ get photo(): string | null;
627
627
  /** Número de teléfono sin formato */
628
- readonly phone: string;
628
+ get phone(): string;
629
629
  /** Bio del contacto */
630
- readonly content: string;
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
- readonly id: string;
668
- readonly cid: string;
669
- readonly mid: string | null;
670
- readonly me: boolean;
671
- readonly author: string;
672
- readonly edited: boolean;
673
- readonly type: import("./Message").MessageType;
674
- readonly caption: string;
675
- readonly mime: string;
676
- readonly status: import("./Message").MESSAGE_STATUS;
677
- readonly starred: boolean;
678
- readonly forwarded: boolean;
679
- readonly created_at: number;
680
- readonly deleted_at: number | null;
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
- readonly id: string;
692
- readonly cid: string;
693
- readonly mid: string | null;
694
- readonly me: boolean;
695
- readonly author: string;
696
- readonly edited: boolean;
697
- readonly type: import("./Message").MessageType;
698
- readonly caption: string;
699
- readonly mime: string;
700
- readonly status: import("./Message").MESSAGE_STATUS;
701
- readonly starred: boolean;
702
- readonly forwarded: boolean;
703
- readonly created_at: number;
704
- readonly deleted_at: number | null;
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
- readonly id: string;
711
- readonly cid: string;
712
- readonly mid: string | null;
713
- readonly me: boolean;
714
- readonly author: string;
715
- readonly edited: boolean;
716
- readonly type: import("./Message").MessageType;
717
- readonly caption: string;
718
- readonly mime: string;
719
- readonly status: import("./Message").MESSAGE_STATUS;
720
- readonly starred: boolean;
721
- readonly forwarded: boolean;
722
- readonly created_at: number;
723
- readonly deleted_at: number | null;
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
- readonly id: string;
730
- readonly cid: string;
731
- readonly mid: string | null;
732
- readonly me: boolean;
733
- readonly author: string;
734
- readonly edited: boolean;
735
- readonly type: import("./Message").MessageType;
736
- readonly caption: string;
737
- readonly mime: string;
738
- readonly status: import("./Message").MESSAGE_STATUS;
739
- readonly starred: boolean;
740
- readonly forwarded: boolean;
741
- readonly created_at: number;
742
- readonly deleted_at: number | null;
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
- readonly id: string;
749
- readonly cid: string;
750
- readonly mid: string | null;
751
- readonly me: boolean;
752
- readonly author: string;
753
- readonly edited: boolean;
754
- readonly type: import("./Message").MessageType;
755
- readonly caption: string;
756
- readonly mime: string;
757
- readonly status: import("./Message").MESSAGE_STATUS;
758
- readonly starred: boolean;
759
- readonly forwarded: boolean;
760
- readonly created_at: number;
761
- readonly deleted_at: number | null;
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
- readonly id: string;
768
- readonly cid: string;
769
- readonly mid: string | null;
770
- readonly me: boolean;
771
- readonly author: string;
772
- readonly edited: boolean;
773
- readonly type: import("./Message").MessageType;
774
- readonly caption: string;
775
- readonly mime: string;
776
- readonly status: import("./Message").MESSAGE_STATUS;
777
- readonly starred: boolean;
778
- readonly forwarded: boolean;
779
- readonly created_at: number;
780
- readonly deleted_at: number | null;
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
- readonly id: string;
787
- readonly cid: string;
788
- readonly mid: string | null;
789
- readonly me: boolean;
790
- readonly author: string;
791
- readonly edited: boolean;
792
- readonly type: import("./Message").MessageType;
793
- readonly caption: string;
794
- readonly mime: string;
795
- readonly status: import("./Message").MESSAGE_STATUS;
796
- readonly starred: boolean;
797
- readonly forwarded: boolean;
798
- readonly created_at: number;
799
- readonly deleted_at: number | null;
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
- readonly id: string;
807
- readonly type: "contact" | "group";
808
- readonly name: string;
809
- readonly content: string;
810
- readonly pined: boolean;
811
- readonly archived: boolean;
812
- readonly muted: number | false;
813
- readonly readed: boolean;
814
- readonly readonly: boolean;
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
- readonly id: string;
818
+ get id(): string;
819
819
  /** Nombre del contacto */
820
- readonly name: string;
820
+ get name(): string;
821
821
  /** URL de la foto de perfil o null */
822
- readonly photo: string | null;
822
+ get photo(): string | null;
823
823
  /** Número de teléfono sin formato */
824
- readonly phone: string;
824
+ get phone(): string;
825
825
  /** Bio del contacto */
826
- readonly content: string;
826
+ get content(): string;
827
827
  }[]>;
828
828
  };