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