@arcaelas/whatsapp 2.1.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/decorators.d.ts +9 -0
- package/build/cjs/decorators.js +26 -0
- package/build/cjs/decorators.js.map +1 -0
- package/build/cjs/index.d.ts +6 -10
- package/build/cjs/index.js +11 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/lib/bot/decorator.d.ts +77 -0
- package/build/cjs/lib/bot/decorator.js +219 -0
- package/build/cjs/lib/bot/decorator.js.map +1 -0
- package/build/cjs/lib/bot/decorators.d.ts +113 -0
- package/build/cjs/lib/bot/decorators.js +253 -0
- package/build/cjs/lib/bot/decorators.js.map +1 -0
- package/build/cjs/lib/bot/index.d.ts +3 -0
- package/build/cjs/lib/bot/index.js +20 -0
- package/build/cjs/lib/bot/index.js.map +1 -0
- package/build/cjs/lib/chat/index.d.ts +227 -0
- package/build/cjs/lib/chat/index.js +324 -0
- package/build/cjs/lib/chat/index.js.map +1 -0
- package/build/cjs/lib/contact/index.d.ts +203 -0
- package/build/cjs/lib/contact/index.js +226 -0
- package/build/cjs/lib/contact/index.js.map +1 -0
- package/build/cjs/lib/message/index.d.ts +228 -0
- package/build/cjs/lib/message/index.js +678 -0
- package/build/cjs/lib/message/index.js.map +1 -0
- package/build/cjs/lib/store/engine/index.d.ts +34 -0
- package/build/cjs/lib/store/engine/index.js +13 -0
- package/build/cjs/lib/store/engine/index.js.map +1 -0
- package/build/cjs/lib/store/engine/lib/file_system/index.d.ts +56 -0
- package/build/cjs/lib/store/engine/lib/file_system/index.js +160 -0
- package/build/cjs/lib/store/engine/lib/file_system/index.js.map +1 -0
- package/build/cjs/lib/store/engine/lib/redis/index.d.ts +82 -0
- package/build/cjs/lib/store/engine/lib/redis/index.js +132 -0
- package/build/cjs/lib/store/engine/lib/redis/index.js.map +1 -0
- package/build/cjs/lib/store/index.d.ts +22 -0
- package/build/cjs/lib/store/index.js +38 -0
- package/build/cjs/lib/store/index.js.map +1 -0
- package/build/cjs/lib/whatsapp/index.d.ts +179 -0
- package/build/cjs/lib/whatsapp/index.js +754 -0
- package/build/cjs/lib/whatsapp/index.js.map +1 -0
- package/build/esm/decorators.d.ts +9 -0
- package/build/esm/decorators.js +9 -0
- package/build/esm/decorators.js.map +1 -0
- package/build/esm/index.d.ts +6 -10
- package/build/esm/index.js +4 -6
- package/build/esm/index.js.map +1 -1
- package/build/esm/lib/bot/decorator.d.ts +77 -0
- package/build/esm/lib/bot/decorator.js +210 -0
- package/build/esm/lib/bot/decorator.js.map +1 -0
- package/build/esm/lib/bot/decorators.d.ts +113 -0
- package/build/esm/lib/bot/decorators.js +242 -0
- package/build/esm/lib/bot/decorators.js.map +1 -0
- package/build/esm/lib/bot/index.d.ts +3 -0
- package/build/esm/lib/bot/index.js +3 -0
- package/build/esm/lib/bot/index.js.map +1 -0
- package/build/esm/lib/chat/index.d.ts +227 -0
- package/build/esm/lib/chat/index.js +319 -0
- package/build/esm/lib/chat/index.js.map +1 -0
- package/build/esm/lib/contact/index.d.ts +203 -0
- package/build/esm/lib/contact/index.js +221 -0
- package/build/esm/lib/contact/index.js.map +1 -0
- package/build/esm/lib/message/index.d.ts +228 -0
- package/build/esm/lib/message/index.js +666 -0
- package/build/esm/lib/message/index.js.map +1 -0
- package/build/esm/lib/store/engine/index.d.ts +34 -0
- package/build/esm/lib/store/engine/index.js +8 -0
- package/build/esm/lib/store/engine/index.js.map +1 -0
- package/build/esm/lib/store/engine/lib/file_system/index.d.ts +56 -0
- package/build/esm/lib/store/engine/lib/file_system/index.js +156 -0
- package/build/esm/lib/store/engine/lib/file_system/index.js.map +1 -0
- package/build/esm/lib/store/engine/lib/redis/index.d.ts +82 -0
- package/build/esm/lib/store/engine/lib/redis/index.js +128 -0
- package/build/esm/lib/store/engine/lib/redis/index.js.map +1 -0
- package/build/esm/lib/store/index.d.ts +22 -0
- package/build/esm/lib/store/index.js +31 -0
- package/build/esm/lib/store/index.js.map +1 -0
- package/build/esm/lib/whatsapp/index.d.ts +179 -0
- package/build/esm/lib/whatsapp/index.js +714 -0
- package/build/esm/lib/whatsapp/index.js.map +1 -0
- package/package.json +8 -6
- package/build/cjs/Chat.d.ts +0 -317
- package/build/cjs/Chat.js +0 -273
- package/build/cjs/Chat.js.map +0 -1
- package/build/cjs/Contact.d.ts +0 -1163
- package/build/cjs/Contact.js +0 -160
- package/build/cjs/Contact.js.map +0 -1
- package/build/cjs/Message.d.ts +0 -902
- package/build/cjs/Message.js +0 -515
- package/build/cjs/Message.js.map +0 -1
- package/build/cjs/WhatsApp.d.ts +0 -80
- package/build/cjs/WhatsApp.js +0 -412
- package/build/cjs/WhatsApp.js.map +0 -1
- package/build/cjs/store/driver/FileEngine.d.ts +0 -34
- package/build/cjs/store/driver/FileEngine.js +0 -86
- package/build/cjs/store/driver/FileEngine.js.map +0 -1
- package/build/cjs/store/driver/RedisEngine.d.ts +0 -47
- package/build/cjs/store/driver/RedisEngine.js +0 -70
- package/build/cjs/store/driver/RedisEngine.js.map +0 -1
- package/build/cjs/store/engine.d.ts +0 -53
- package/build/cjs/store/engine.js +0 -7
- package/build/cjs/store/engine.js.map +0 -1
- package/build/cjs/store/index.d.ts +0 -8
- package/build/cjs/store/index.js +0 -12
- package/build/cjs/store/index.js.map +0 -1
- package/build/esm/Chat.d.ts +0 -317
- package/build/esm/Chat.js +0 -268
- package/build/esm/Chat.js.map +0 -1
- package/build/esm/Contact.d.ts +0 -1163
- package/build/esm/Contact.js +0 -155
- package/build/esm/Contact.js.map +0 -1
- package/build/esm/Message.d.ts +0 -902
- package/build/esm/Message.js +0 -510
- package/build/esm/Message.js.map +0 -1
- package/build/esm/WhatsApp.d.ts +0 -80
- package/build/esm/WhatsApp.js +0 -372
- package/build/esm/WhatsApp.js.map +0 -1
- package/build/esm/store/driver/FileEngine.d.ts +0 -34
- package/build/esm/store/driver/FileEngine.js +0 -82
- package/build/esm/store/driver/FileEngine.js.map +0 -1
- package/build/esm/store/driver/RedisEngine.d.ts +0 -47
- package/build/esm/store/driver/RedisEngine.js +0 -66
- package/build/esm/store/driver/RedisEngine.js.map +0 -1
- package/build/esm/store/engine.d.ts +0 -53
- package/build/esm/store/engine.js +0 -6
- package/build/esm/store/engine.js.map +0 -1
- package/build/esm/store/index.d.ts +0 -8
- package/build/esm/store/index.js +0 -7
- package/build/esm/store/index.js.map +0 -1
package/build/esm/Contact.d.ts
DELETED
|
@@ -1,1163 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Contact.ts
|
|
3
|
-
* @description Clase Contact para gestión de contactos de WhatsApp
|
|
4
|
-
*/
|
|
5
|
-
import type { WhatsApp } from './WhatsApp';
|
|
6
|
-
/**
|
|
7
|
-
* @description Objeto raw del contacto (protocolo).
|
|
8
|
-
* Raw contact object (protocol).
|
|
9
|
-
*/
|
|
10
|
-
export interface IContactRaw {
|
|
11
|
-
/** JID único del contacto / Unique contact JID */
|
|
12
|
-
id: string;
|
|
13
|
-
/** ID alternativo en formato LID / Alternative ID in LID format */
|
|
14
|
-
lid?: string | null;
|
|
15
|
-
/** Nombre guardado en la agenda del usuario / Name saved in user's address book */
|
|
16
|
-
name?: string | null;
|
|
17
|
-
/** Nombre que el contacto configuró en su perfil (pushName) / Profile push name */
|
|
18
|
-
notify?: string | null;
|
|
19
|
-
/** Nombre de cuenta business verificada / Verified business account name */
|
|
20
|
-
verifiedName?: string | null;
|
|
21
|
-
/** URL de la foto de perfil / Profile picture URL */
|
|
22
|
-
imgUrl?: string | null;
|
|
23
|
-
/** Bio/estado del perfil del contacto / Contact profile bio/status */
|
|
24
|
-
status?: string | null;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @description
|
|
28
|
-
* Clase base para representar un contacto de WhatsApp.
|
|
29
|
-
* Base class representing a WhatsApp contact.
|
|
30
|
-
*/
|
|
31
|
-
export declare class Contact {
|
|
32
|
-
readonly raw: IContactRaw;
|
|
33
|
-
constructor(raw: IContactRaw);
|
|
34
|
-
/** JID único del contacto / Unique contact JID */
|
|
35
|
-
get id(): string;
|
|
36
|
-
/** Nombre del contacto / Contact name */
|
|
37
|
-
get name(): string;
|
|
38
|
-
/** URL de la foto de perfil o null / Profile picture URL or null */
|
|
39
|
-
get photo(): string | null;
|
|
40
|
-
/** Número de teléfono sin formato / Phone number without format */
|
|
41
|
-
get phone(): string;
|
|
42
|
-
/** Bio del contacto / Contact bio */
|
|
43
|
-
get content(): string;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* @description Factory que retorna la clase Contact enlazada al contexto.
|
|
47
|
-
* Factory that returns the Contact class bound to context.
|
|
48
|
-
* @param wa Instancia de WhatsApp.
|
|
49
|
-
*/
|
|
50
|
-
export declare function contact(wa: WhatsApp): {
|
|
51
|
-
new (raw: IContactRaw): {
|
|
52
|
-
/**
|
|
53
|
-
* @description Cambia el nombre del contacto.
|
|
54
|
-
* Renames the contact.
|
|
55
|
-
* @param name Nuevo nombre.
|
|
56
|
-
*/
|
|
57
|
-
rename(name: string): Promise<boolean>;
|
|
58
|
-
/**
|
|
59
|
-
* @description Actualiza los datos del perfil desde WhatsApp.
|
|
60
|
-
* Refreshes profile data from WhatsApp.
|
|
61
|
-
*/
|
|
62
|
-
refresh(): Promise</*elided*/ any | null>;
|
|
63
|
-
/**
|
|
64
|
-
* @description Obtiene o crea el chat con este contacto.
|
|
65
|
-
* Gets or creates the chat with this contact.
|
|
66
|
-
*/
|
|
67
|
-
chat(): Promise<{
|
|
68
|
-
refresh(): Promise</*elided*/ any | null>;
|
|
69
|
-
remove(): Promise<boolean>;
|
|
70
|
-
pin(value: boolean): Promise<boolean>;
|
|
71
|
-
archive(value: boolean): Promise<boolean>;
|
|
72
|
-
mute(duration: number | null): Promise<boolean>;
|
|
73
|
-
seen(): Promise<boolean>;
|
|
74
|
-
members(offset?: number, limit?: number): Promise<InstanceType</*elided*/ any>[]>;
|
|
75
|
-
messages(offset?: number, limit?: number): Promise<InstanceType<{
|
|
76
|
-
new (data: import("./Message").IMessage): {
|
|
77
|
-
edit(text: string): Promise<boolean>;
|
|
78
|
-
remove(): Promise<boolean>;
|
|
79
|
-
forward(to_cid: string): Promise<boolean>;
|
|
80
|
-
react(emoji: string): Promise<boolean>;
|
|
81
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
82
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
83
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
84
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
85
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
86
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
87
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
88
|
-
content(): Promise<Buffer>;
|
|
89
|
-
readonly index: import("./Message").IMessageIndex;
|
|
90
|
-
readonly raw: import("baileys").WAMessage;
|
|
91
|
-
get id(): string;
|
|
92
|
-
get cid(): string;
|
|
93
|
-
get mid(): string | null;
|
|
94
|
-
get me(): boolean;
|
|
95
|
-
get author(): string;
|
|
96
|
-
get edited(): boolean;
|
|
97
|
-
get type(): import("./Message").MessageType;
|
|
98
|
-
get caption(): string;
|
|
99
|
-
get mime(): string;
|
|
100
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
101
|
-
get starred(): boolean;
|
|
102
|
-
get forwarded(): boolean;
|
|
103
|
-
get created_at(): number;
|
|
104
|
-
get deleted_at(): number | null;
|
|
105
|
-
};
|
|
106
|
-
get(cid: string, mid: string): Promise<InstanceType</*elided*/ any> | null>;
|
|
107
|
-
list(cid: string, offset?: number, limit?: number): Promise<InstanceType</*elided*/ any>[]>;
|
|
108
|
-
count(cid: string): Promise<number>;
|
|
109
|
-
text(cid: string, text: string, mid?: string): Promise<{
|
|
110
|
-
edit(text: string): Promise<boolean>;
|
|
111
|
-
remove(): Promise<boolean>;
|
|
112
|
-
forward(to_cid: string): Promise<boolean>;
|
|
113
|
-
react(emoji: string): Promise<boolean>;
|
|
114
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
115
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
116
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
117
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
118
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
119
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
120
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
121
|
-
content(): Promise<Buffer>;
|
|
122
|
-
readonly index: import("./Message").IMessageIndex;
|
|
123
|
-
readonly raw: import("baileys").WAMessage;
|
|
124
|
-
get id(): string;
|
|
125
|
-
get cid(): string;
|
|
126
|
-
get mid(): string | null;
|
|
127
|
-
get me(): boolean;
|
|
128
|
-
get author(): string;
|
|
129
|
-
get edited(): boolean;
|
|
130
|
-
get type(): import("./Message").MessageType;
|
|
131
|
-
get caption(): string;
|
|
132
|
-
get mime(): string;
|
|
133
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
134
|
-
get starred(): boolean;
|
|
135
|
-
get forwarded(): boolean;
|
|
136
|
-
get created_at(): number;
|
|
137
|
-
get deleted_at(): number | null;
|
|
138
|
-
} | null>;
|
|
139
|
-
image(cid: string, buffer: Buffer, caption?: string, mid?: string): Promise<{
|
|
140
|
-
edit(text: string): Promise<boolean>;
|
|
141
|
-
remove(): Promise<boolean>;
|
|
142
|
-
forward(to_cid: string): Promise<boolean>;
|
|
143
|
-
react(emoji: string): Promise<boolean>;
|
|
144
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
145
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
146
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
147
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
148
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
149
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
150
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
151
|
-
content(): Promise<Buffer>;
|
|
152
|
-
readonly index: import("./Message").IMessageIndex;
|
|
153
|
-
readonly raw: import("baileys").WAMessage;
|
|
154
|
-
get id(): string;
|
|
155
|
-
get cid(): string;
|
|
156
|
-
get mid(): string | null;
|
|
157
|
-
get me(): boolean;
|
|
158
|
-
get author(): string;
|
|
159
|
-
get edited(): boolean;
|
|
160
|
-
get type(): import("./Message").MessageType;
|
|
161
|
-
get caption(): string;
|
|
162
|
-
get mime(): string;
|
|
163
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
164
|
-
get starred(): boolean;
|
|
165
|
-
get forwarded(): boolean;
|
|
166
|
-
get created_at(): number;
|
|
167
|
-
get deleted_at(): number | null;
|
|
168
|
-
} | null>;
|
|
169
|
-
video(cid: string, buffer: Buffer, caption?: string, mid?: string): Promise<{
|
|
170
|
-
edit(text: string): Promise<boolean>;
|
|
171
|
-
remove(): Promise<boolean>;
|
|
172
|
-
forward(to_cid: string): Promise<boolean>;
|
|
173
|
-
react(emoji: string): Promise<boolean>;
|
|
174
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
175
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
176
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
177
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
178
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
179
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
180
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
181
|
-
content(): Promise<Buffer>;
|
|
182
|
-
readonly index: import("./Message").IMessageIndex;
|
|
183
|
-
readonly raw: import("baileys").WAMessage;
|
|
184
|
-
get id(): string;
|
|
185
|
-
get cid(): string;
|
|
186
|
-
get mid(): string | null;
|
|
187
|
-
get me(): boolean;
|
|
188
|
-
get author(): string;
|
|
189
|
-
get edited(): boolean;
|
|
190
|
-
get type(): import("./Message").MessageType;
|
|
191
|
-
get caption(): string;
|
|
192
|
-
get mime(): string;
|
|
193
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
194
|
-
get starred(): boolean;
|
|
195
|
-
get forwarded(): boolean;
|
|
196
|
-
get created_at(): number;
|
|
197
|
-
get deleted_at(): number | null;
|
|
198
|
-
} | null>;
|
|
199
|
-
audio(cid: string, buffer: Buffer, ptt?: boolean, mid?: string): Promise<{
|
|
200
|
-
edit(text: string): Promise<boolean>;
|
|
201
|
-
remove(): Promise<boolean>;
|
|
202
|
-
forward(to_cid: string): Promise<boolean>;
|
|
203
|
-
react(emoji: string): Promise<boolean>;
|
|
204
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
205
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
206
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
207
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
208
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
209
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
210
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
211
|
-
content(): Promise<Buffer>;
|
|
212
|
-
readonly index: import("./Message").IMessageIndex;
|
|
213
|
-
readonly raw: import("baileys").WAMessage;
|
|
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
|
-
} | null>;
|
|
229
|
-
location(cid: string, opts: import("./Message").LocationOptions, mid?: string): Promise<{
|
|
230
|
-
edit(text: string): Promise<boolean>;
|
|
231
|
-
remove(): Promise<boolean>;
|
|
232
|
-
forward(to_cid: string): Promise<boolean>;
|
|
233
|
-
react(emoji: string): Promise<boolean>;
|
|
234
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
235
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
236
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
237
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
238
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
239
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
240
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
241
|
-
content(): Promise<Buffer>;
|
|
242
|
-
readonly index: import("./Message").IMessageIndex;
|
|
243
|
-
readonly raw: import("baileys").WAMessage;
|
|
244
|
-
get id(): string;
|
|
245
|
-
get cid(): string;
|
|
246
|
-
get mid(): string | null;
|
|
247
|
-
get me(): boolean;
|
|
248
|
-
get author(): string;
|
|
249
|
-
get edited(): boolean;
|
|
250
|
-
get type(): import("./Message").MessageType;
|
|
251
|
-
get caption(): string;
|
|
252
|
-
get mime(): string;
|
|
253
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
254
|
-
get starred(): boolean;
|
|
255
|
-
get forwarded(): boolean;
|
|
256
|
-
get created_at(): number;
|
|
257
|
-
get deleted_at(): number | null;
|
|
258
|
-
} | null>;
|
|
259
|
-
poll(cid: string, opts: import("./Message").PollOptions, mid?: string): Promise<{
|
|
260
|
-
edit(text: string): Promise<boolean>;
|
|
261
|
-
remove(): Promise<boolean>;
|
|
262
|
-
forward(to_cid: string): Promise<boolean>;
|
|
263
|
-
react(emoji: string): Promise<boolean>;
|
|
264
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
265
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
266
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
267
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
268
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
269
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
270
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
271
|
-
content(): Promise<Buffer>;
|
|
272
|
-
readonly index: import("./Message").IMessageIndex;
|
|
273
|
-
readonly raw: import("baileys").WAMessage;
|
|
274
|
-
get id(): string;
|
|
275
|
-
get cid(): string;
|
|
276
|
-
get mid(): string | null;
|
|
277
|
-
get me(): boolean;
|
|
278
|
-
get author(): string;
|
|
279
|
-
get edited(): boolean;
|
|
280
|
-
get type(): import("./Message").MessageType;
|
|
281
|
-
get caption(): string;
|
|
282
|
-
get mime(): string;
|
|
283
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
284
|
-
get starred(): boolean;
|
|
285
|
-
get forwarded(): boolean;
|
|
286
|
-
get created_at(): number;
|
|
287
|
-
get deleted_at(): number | null;
|
|
288
|
-
} | null>;
|
|
289
|
-
edit(cid: string, mid: string, text: string): Promise<boolean>;
|
|
290
|
-
remove(cid: string, mid: string): Promise<boolean>;
|
|
291
|
-
react(cid: string, mid: string, emoji: string): Promise<boolean>;
|
|
292
|
-
forward(cid: string, mid: string, to_cid: string): Promise<boolean>;
|
|
293
|
-
watch(cid: string, mid: string, handler: (msg: InstanceType</*elided*/ any>) => void): () => void;
|
|
294
|
-
} & {
|
|
295
|
-
_add_to_index: (cid: string, mid: string, timestamp: number) => Promise<void>;
|
|
296
|
-
_remove_from_index: (cid: string, mid: string) => Promise<void>;
|
|
297
|
-
_notify: (cid: string, mid: string) => void;
|
|
298
|
-
_build_index: (raw: import("baileys").WAMessage, edited?: boolean) => import("./Message").IMessageIndex;
|
|
299
|
-
}>[]>;
|
|
300
|
-
contact(): Promise<InstanceType</*elided*/ any> | null>;
|
|
301
|
-
readonly raw: import("./Chat").IChatRaw;
|
|
302
|
-
get id(): string;
|
|
303
|
-
get type(): "contact" | "group";
|
|
304
|
-
get name(): string;
|
|
305
|
-
get content(): string;
|
|
306
|
-
get pinned(): boolean;
|
|
307
|
-
get archived(): boolean;
|
|
308
|
-
get muted(): number;
|
|
309
|
-
get read(): boolean;
|
|
310
|
-
get readonly(): boolean;
|
|
311
|
-
} | null>;
|
|
312
|
-
readonly raw: IContactRaw;
|
|
313
|
-
/** JID único del contacto / Unique contact JID */
|
|
314
|
-
get id(): string;
|
|
315
|
-
/** Nombre del contacto / Contact name */
|
|
316
|
-
get name(): string;
|
|
317
|
-
/** URL de la foto de perfil o null / Profile picture URL or null */
|
|
318
|
-
get photo(): string | null;
|
|
319
|
-
/** Número de teléfono sin formato / Phone number without format */
|
|
320
|
-
get phone(): string;
|
|
321
|
-
/** Bio del contacto / Contact bio */
|
|
322
|
-
get content(): string;
|
|
323
|
-
};
|
|
324
|
-
/**
|
|
325
|
-
* @description Obtiene un contacto por su ID.
|
|
326
|
-
* Retrieves a contact by its ID.
|
|
327
|
-
* @param uid JID del contacto o número de teléfono.
|
|
328
|
-
*/
|
|
329
|
-
get(uid: string): Promise<{
|
|
330
|
-
/**
|
|
331
|
-
* @description Cambia el nombre del contacto.
|
|
332
|
-
* Renames the contact.
|
|
333
|
-
* @param name Nuevo nombre.
|
|
334
|
-
*/
|
|
335
|
-
rename(name: string): Promise<boolean>;
|
|
336
|
-
/**
|
|
337
|
-
* @description Actualiza los datos del perfil desde WhatsApp.
|
|
338
|
-
* Refreshes profile data from WhatsApp.
|
|
339
|
-
*/
|
|
340
|
-
refresh(): Promise</*elided*/ any | null>;
|
|
341
|
-
/**
|
|
342
|
-
* @description Obtiene o crea el chat con este contacto.
|
|
343
|
-
* Gets or creates the chat with this contact.
|
|
344
|
-
*/
|
|
345
|
-
chat(): Promise<{
|
|
346
|
-
refresh(): Promise</*elided*/ any | null>;
|
|
347
|
-
remove(): Promise<boolean>;
|
|
348
|
-
pin(value: boolean): Promise<boolean>;
|
|
349
|
-
archive(value: boolean): Promise<boolean>;
|
|
350
|
-
mute(duration: number | null): Promise<boolean>;
|
|
351
|
-
seen(): Promise<boolean>;
|
|
352
|
-
members(offset?: number, limit?: number): Promise<InstanceType</*elided*/ any>[]>;
|
|
353
|
-
messages(offset?: number, limit?: number): Promise<InstanceType<{
|
|
354
|
-
new (data: import("./Message").IMessage): {
|
|
355
|
-
edit(text: string): Promise<boolean>;
|
|
356
|
-
remove(): Promise<boolean>;
|
|
357
|
-
forward(to_cid: string): Promise<boolean>;
|
|
358
|
-
react(emoji: string): Promise<boolean>;
|
|
359
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
360
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
361
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
362
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
363
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
364
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
365
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
366
|
-
content(): Promise<Buffer>;
|
|
367
|
-
readonly index: import("./Message").IMessageIndex;
|
|
368
|
-
readonly raw: import("baileys").WAMessage;
|
|
369
|
-
get id(): string;
|
|
370
|
-
get cid(): string;
|
|
371
|
-
get mid(): string | null;
|
|
372
|
-
get me(): boolean;
|
|
373
|
-
get author(): string;
|
|
374
|
-
get edited(): boolean;
|
|
375
|
-
get type(): import("./Message").MessageType;
|
|
376
|
-
get caption(): string;
|
|
377
|
-
get mime(): string;
|
|
378
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
379
|
-
get starred(): boolean;
|
|
380
|
-
get forwarded(): boolean;
|
|
381
|
-
get created_at(): number;
|
|
382
|
-
get deleted_at(): number | null;
|
|
383
|
-
};
|
|
384
|
-
get(cid: string, mid: string): Promise<InstanceType</*elided*/ any> | null>;
|
|
385
|
-
list(cid: string, offset?: number, limit?: number): Promise<InstanceType</*elided*/ any>[]>;
|
|
386
|
-
count(cid: string): Promise<number>;
|
|
387
|
-
text(cid: string, text: string, mid?: string): Promise<{
|
|
388
|
-
edit(text: string): Promise<boolean>;
|
|
389
|
-
remove(): Promise<boolean>;
|
|
390
|
-
forward(to_cid: string): Promise<boolean>;
|
|
391
|
-
react(emoji: string): Promise<boolean>;
|
|
392
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
393
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
394
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
395
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
396
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
397
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
398
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
399
|
-
content(): Promise<Buffer>;
|
|
400
|
-
readonly index: import("./Message").IMessageIndex;
|
|
401
|
-
readonly raw: import("baileys").WAMessage;
|
|
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
|
-
} | null>;
|
|
417
|
-
image(cid: string, buffer: Buffer, caption?: string, mid?: string): Promise<{
|
|
418
|
-
edit(text: string): Promise<boolean>;
|
|
419
|
-
remove(): Promise<boolean>;
|
|
420
|
-
forward(to_cid: string): Promise<boolean>;
|
|
421
|
-
react(emoji: string): Promise<boolean>;
|
|
422
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
423
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
424
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
425
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
426
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
427
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
428
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
429
|
-
content(): Promise<Buffer>;
|
|
430
|
-
readonly index: import("./Message").IMessageIndex;
|
|
431
|
-
readonly raw: import("baileys").WAMessage;
|
|
432
|
-
get id(): string;
|
|
433
|
-
get cid(): string;
|
|
434
|
-
get mid(): string | null;
|
|
435
|
-
get me(): boolean;
|
|
436
|
-
get author(): string;
|
|
437
|
-
get edited(): boolean;
|
|
438
|
-
get type(): import("./Message").MessageType;
|
|
439
|
-
get caption(): string;
|
|
440
|
-
get mime(): string;
|
|
441
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
442
|
-
get starred(): boolean;
|
|
443
|
-
get forwarded(): boolean;
|
|
444
|
-
get created_at(): number;
|
|
445
|
-
get deleted_at(): number | null;
|
|
446
|
-
} | null>;
|
|
447
|
-
video(cid: string, buffer: Buffer, caption?: string, mid?: string): Promise<{
|
|
448
|
-
edit(text: string): Promise<boolean>;
|
|
449
|
-
remove(): Promise<boolean>;
|
|
450
|
-
forward(to_cid: string): Promise<boolean>;
|
|
451
|
-
react(emoji: string): Promise<boolean>;
|
|
452
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
453
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
454
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
455
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
456
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
457
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
458
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
459
|
-
content(): Promise<Buffer>;
|
|
460
|
-
readonly index: import("./Message").IMessageIndex;
|
|
461
|
-
readonly raw: import("baileys").WAMessage;
|
|
462
|
-
get id(): string;
|
|
463
|
-
get cid(): string;
|
|
464
|
-
get mid(): string | null;
|
|
465
|
-
get me(): boolean;
|
|
466
|
-
get author(): string;
|
|
467
|
-
get edited(): boolean;
|
|
468
|
-
get type(): import("./Message").MessageType;
|
|
469
|
-
get caption(): string;
|
|
470
|
-
get mime(): string;
|
|
471
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
472
|
-
get starred(): boolean;
|
|
473
|
-
get forwarded(): boolean;
|
|
474
|
-
get created_at(): number;
|
|
475
|
-
get deleted_at(): number | null;
|
|
476
|
-
} | null>;
|
|
477
|
-
audio(cid: string, buffer: Buffer, ptt?: boolean, mid?: string): Promise<{
|
|
478
|
-
edit(text: string): Promise<boolean>;
|
|
479
|
-
remove(): Promise<boolean>;
|
|
480
|
-
forward(to_cid: string): Promise<boolean>;
|
|
481
|
-
react(emoji: string): Promise<boolean>;
|
|
482
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
483
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
484
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
485
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
486
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
487
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
488
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
489
|
-
content(): Promise<Buffer>;
|
|
490
|
-
readonly index: import("./Message").IMessageIndex;
|
|
491
|
-
readonly raw: import("baileys").WAMessage;
|
|
492
|
-
get id(): string;
|
|
493
|
-
get cid(): string;
|
|
494
|
-
get mid(): string | null;
|
|
495
|
-
get me(): boolean;
|
|
496
|
-
get author(): string;
|
|
497
|
-
get edited(): boolean;
|
|
498
|
-
get type(): import("./Message").MessageType;
|
|
499
|
-
get caption(): string;
|
|
500
|
-
get mime(): string;
|
|
501
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
502
|
-
get starred(): boolean;
|
|
503
|
-
get forwarded(): boolean;
|
|
504
|
-
get created_at(): number;
|
|
505
|
-
get deleted_at(): number | null;
|
|
506
|
-
} | null>;
|
|
507
|
-
location(cid: string, opts: import("./Message").LocationOptions, mid?: string): Promise<{
|
|
508
|
-
edit(text: string): Promise<boolean>;
|
|
509
|
-
remove(): Promise<boolean>;
|
|
510
|
-
forward(to_cid: string): Promise<boolean>;
|
|
511
|
-
react(emoji: string): Promise<boolean>;
|
|
512
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
513
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
514
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
515
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
516
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
517
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
518
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
519
|
-
content(): Promise<Buffer>;
|
|
520
|
-
readonly index: import("./Message").IMessageIndex;
|
|
521
|
-
readonly raw: import("baileys").WAMessage;
|
|
522
|
-
get id(): string;
|
|
523
|
-
get cid(): string;
|
|
524
|
-
get mid(): string | null;
|
|
525
|
-
get me(): boolean;
|
|
526
|
-
get author(): string;
|
|
527
|
-
get edited(): boolean;
|
|
528
|
-
get type(): import("./Message").MessageType;
|
|
529
|
-
get caption(): string;
|
|
530
|
-
get mime(): string;
|
|
531
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
532
|
-
get starred(): boolean;
|
|
533
|
-
get forwarded(): boolean;
|
|
534
|
-
get created_at(): number;
|
|
535
|
-
get deleted_at(): number | null;
|
|
536
|
-
} | null>;
|
|
537
|
-
poll(cid: string, opts: import("./Message").PollOptions, mid?: string): Promise<{
|
|
538
|
-
edit(text: string): Promise<boolean>;
|
|
539
|
-
remove(): Promise<boolean>;
|
|
540
|
-
forward(to_cid: string): Promise<boolean>;
|
|
541
|
-
react(emoji: string): Promise<boolean>;
|
|
542
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
543
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
544
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
545
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
546
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
547
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
548
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
549
|
-
content(): Promise<Buffer>;
|
|
550
|
-
readonly index: import("./Message").IMessageIndex;
|
|
551
|
-
readonly raw: import("baileys").WAMessage;
|
|
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
|
-
} | null>;
|
|
567
|
-
edit(cid: string, mid: string, text: string): Promise<boolean>;
|
|
568
|
-
remove(cid: string, mid: string): Promise<boolean>;
|
|
569
|
-
react(cid: string, mid: string, emoji: string): Promise<boolean>;
|
|
570
|
-
forward(cid: string, mid: string, to_cid: string): Promise<boolean>;
|
|
571
|
-
watch(cid: string, mid: string, handler: (msg: InstanceType</*elided*/ any>) => void): () => void;
|
|
572
|
-
} & {
|
|
573
|
-
_add_to_index: (cid: string, mid: string, timestamp: number) => Promise<void>;
|
|
574
|
-
_remove_from_index: (cid: string, mid: string) => Promise<void>;
|
|
575
|
-
_notify: (cid: string, mid: string) => void;
|
|
576
|
-
_build_index: (raw: import("baileys").WAMessage, edited?: boolean) => import("./Message").IMessageIndex;
|
|
577
|
-
}>[]>;
|
|
578
|
-
contact(): Promise<InstanceType</*elided*/ any> | null>;
|
|
579
|
-
readonly raw: import("./Chat").IChatRaw;
|
|
580
|
-
get id(): string;
|
|
581
|
-
get type(): "contact" | "group";
|
|
582
|
-
get name(): string;
|
|
583
|
-
get content(): string;
|
|
584
|
-
get pinned(): boolean;
|
|
585
|
-
get archived(): boolean;
|
|
586
|
-
get muted(): number;
|
|
587
|
-
get read(): boolean;
|
|
588
|
-
get readonly(): boolean;
|
|
589
|
-
} | null>;
|
|
590
|
-
readonly raw: IContactRaw;
|
|
591
|
-
/** JID único del contacto / Unique contact JID */
|
|
592
|
-
get id(): string;
|
|
593
|
-
/** Nombre del contacto / Contact name */
|
|
594
|
-
get name(): string;
|
|
595
|
-
/** URL de la foto de perfil o null / Profile picture URL or null */
|
|
596
|
-
get photo(): string | null;
|
|
597
|
-
/** Número de teléfono sin formato / Phone number without format */
|
|
598
|
-
get phone(): string;
|
|
599
|
-
/** Bio del contacto / Contact bio */
|
|
600
|
-
get content(): string;
|
|
601
|
-
} | null>;
|
|
602
|
-
/**
|
|
603
|
-
* @description Obtiene contactos paginados.
|
|
604
|
-
* Retrieves paginated contacts.
|
|
605
|
-
* @param offset Inicio de paginación.
|
|
606
|
-
* @param limit Cantidad máxima de resultados.
|
|
607
|
-
*/
|
|
608
|
-
list(offset?: number, limit?: number): Promise<{
|
|
609
|
-
/**
|
|
610
|
-
* @description Cambia el nombre del contacto.
|
|
611
|
-
* Renames the contact.
|
|
612
|
-
* @param name Nuevo nombre.
|
|
613
|
-
*/
|
|
614
|
-
rename(name: string): Promise<boolean>;
|
|
615
|
-
/**
|
|
616
|
-
* @description Actualiza los datos del perfil desde WhatsApp.
|
|
617
|
-
* Refreshes profile data from WhatsApp.
|
|
618
|
-
*/
|
|
619
|
-
refresh(): Promise</*elided*/ any | null>;
|
|
620
|
-
/**
|
|
621
|
-
* @description Obtiene o crea el chat con este contacto.
|
|
622
|
-
* Gets or creates the chat with this contact.
|
|
623
|
-
*/
|
|
624
|
-
chat(): Promise<{
|
|
625
|
-
refresh(): Promise</*elided*/ any | null>;
|
|
626
|
-
remove(): Promise<boolean>;
|
|
627
|
-
pin(value: boolean): Promise<boolean>;
|
|
628
|
-
archive(value: boolean): Promise<boolean>;
|
|
629
|
-
mute(duration: number | null): Promise<boolean>;
|
|
630
|
-
seen(): Promise<boolean>;
|
|
631
|
-
members(offset?: number, limit?: number): Promise<InstanceType</*elided*/ any>[]>;
|
|
632
|
-
messages(offset?: number, limit?: number): Promise<InstanceType<{
|
|
633
|
-
new (data: import("./Message").IMessage): {
|
|
634
|
-
edit(text: string): Promise<boolean>;
|
|
635
|
-
remove(): Promise<boolean>;
|
|
636
|
-
forward(to_cid: string): Promise<boolean>;
|
|
637
|
-
react(emoji: string): Promise<boolean>;
|
|
638
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
639
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
640
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
641
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
642
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
643
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
644
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
645
|
-
content(): Promise<Buffer>;
|
|
646
|
-
readonly index: import("./Message").IMessageIndex;
|
|
647
|
-
readonly raw: import("baileys").WAMessage;
|
|
648
|
-
get id(): string;
|
|
649
|
-
get cid(): string;
|
|
650
|
-
get mid(): string | null;
|
|
651
|
-
get me(): boolean;
|
|
652
|
-
get author(): string;
|
|
653
|
-
get edited(): boolean;
|
|
654
|
-
get type(): import("./Message").MessageType;
|
|
655
|
-
get caption(): string;
|
|
656
|
-
get mime(): string;
|
|
657
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
658
|
-
get starred(): boolean;
|
|
659
|
-
get forwarded(): boolean;
|
|
660
|
-
get created_at(): number;
|
|
661
|
-
get deleted_at(): number | null;
|
|
662
|
-
};
|
|
663
|
-
get(cid: string, mid: string): Promise<InstanceType</*elided*/ any> | null>;
|
|
664
|
-
list(cid: string, offset?: number, limit?: number): Promise<InstanceType</*elided*/ any>[]>;
|
|
665
|
-
count(cid: string): Promise<number>;
|
|
666
|
-
text(cid: string, text: string, mid?: string): Promise<{
|
|
667
|
-
edit(text: string): Promise<boolean>;
|
|
668
|
-
remove(): Promise<boolean>;
|
|
669
|
-
forward(to_cid: string): Promise<boolean>;
|
|
670
|
-
react(emoji: string): Promise<boolean>;
|
|
671
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
672
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
673
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
674
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
675
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
676
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
677
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
678
|
-
content(): Promise<Buffer>;
|
|
679
|
-
readonly index: import("./Message").IMessageIndex;
|
|
680
|
-
readonly raw: import("baileys").WAMessage;
|
|
681
|
-
get id(): string;
|
|
682
|
-
get cid(): string;
|
|
683
|
-
get mid(): string | null;
|
|
684
|
-
get me(): boolean;
|
|
685
|
-
get author(): string;
|
|
686
|
-
get edited(): boolean;
|
|
687
|
-
get type(): import("./Message").MessageType;
|
|
688
|
-
get caption(): string;
|
|
689
|
-
get mime(): string;
|
|
690
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
691
|
-
get starred(): boolean;
|
|
692
|
-
get forwarded(): boolean;
|
|
693
|
-
get created_at(): number;
|
|
694
|
-
get deleted_at(): number | null;
|
|
695
|
-
} | null>;
|
|
696
|
-
image(cid: string, buffer: Buffer, caption?: string, mid?: string): Promise<{
|
|
697
|
-
edit(text: string): Promise<boolean>;
|
|
698
|
-
remove(): Promise<boolean>;
|
|
699
|
-
forward(to_cid: string): Promise<boolean>;
|
|
700
|
-
react(emoji: string): Promise<boolean>;
|
|
701
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
702
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
703
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
704
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
705
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
706
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
707
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
708
|
-
content(): Promise<Buffer>;
|
|
709
|
-
readonly index: import("./Message").IMessageIndex;
|
|
710
|
-
readonly raw: import("baileys").WAMessage;
|
|
711
|
-
get id(): string;
|
|
712
|
-
get cid(): string;
|
|
713
|
-
get mid(): string | null;
|
|
714
|
-
get me(): boolean;
|
|
715
|
-
get author(): string;
|
|
716
|
-
get edited(): boolean;
|
|
717
|
-
get type(): import("./Message").MessageType;
|
|
718
|
-
get caption(): string;
|
|
719
|
-
get mime(): string;
|
|
720
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
721
|
-
get starred(): boolean;
|
|
722
|
-
get forwarded(): boolean;
|
|
723
|
-
get created_at(): number;
|
|
724
|
-
get deleted_at(): number | null;
|
|
725
|
-
} | null>;
|
|
726
|
-
video(cid: string, buffer: Buffer, caption?: string, mid?: string): Promise<{
|
|
727
|
-
edit(text: string): Promise<boolean>;
|
|
728
|
-
remove(): Promise<boolean>;
|
|
729
|
-
forward(to_cid: string): Promise<boolean>;
|
|
730
|
-
react(emoji: string): Promise<boolean>;
|
|
731
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
732
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
733
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
734
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
735
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
736
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
737
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
738
|
-
content(): Promise<Buffer>;
|
|
739
|
-
readonly index: import("./Message").IMessageIndex;
|
|
740
|
-
readonly raw: import("baileys").WAMessage;
|
|
741
|
-
get id(): string;
|
|
742
|
-
get cid(): string;
|
|
743
|
-
get mid(): string | null;
|
|
744
|
-
get me(): boolean;
|
|
745
|
-
get author(): string;
|
|
746
|
-
get edited(): boolean;
|
|
747
|
-
get type(): import("./Message").MessageType;
|
|
748
|
-
get caption(): string;
|
|
749
|
-
get mime(): string;
|
|
750
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
751
|
-
get starred(): boolean;
|
|
752
|
-
get forwarded(): boolean;
|
|
753
|
-
get created_at(): number;
|
|
754
|
-
get deleted_at(): number | null;
|
|
755
|
-
} | null>;
|
|
756
|
-
audio(cid: string, buffer: Buffer, ptt?: boolean, mid?: string): Promise<{
|
|
757
|
-
edit(text: string): Promise<boolean>;
|
|
758
|
-
remove(): Promise<boolean>;
|
|
759
|
-
forward(to_cid: string): Promise<boolean>;
|
|
760
|
-
react(emoji: string): Promise<boolean>;
|
|
761
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
762
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
763
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
764
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
765
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
766
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
767
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
768
|
-
content(): Promise<Buffer>;
|
|
769
|
-
readonly index: import("./Message").IMessageIndex;
|
|
770
|
-
readonly raw: import("baileys").WAMessage;
|
|
771
|
-
get id(): string;
|
|
772
|
-
get cid(): string;
|
|
773
|
-
get mid(): string | null;
|
|
774
|
-
get me(): boolean;
|
|
775
|
-
get author(): string;
|
|
776
|
-
get edited(): boolean;
|
|
777
|
-
get type(): import("./Message").MessageType;
|
|
778
|
-
get caption(): string;
|
|
779
|
-
get mime(): string;
|
|
780
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
781
|
-
get starred(): boolean;
|
|
782
|
-
get forwarded(): boolean;
|
|
783
|
-
get created_at(): number;
|
|
784
|
-
get deleted_at(): number | null;
|
|
785
|
-
} | null>;
|
|
786
|
-
location(cid: string, opts: import("./Message").LocationOptions, mid?: string): Promise<{
|
|
787
|
-
edit(text: string): Promise<boolean>;
|
|
788
|
-
remove(): Promise<boolean>;
|
|
789
|
-
forward(to_cid: string): Promise<boolean>;
|
|
790
|
-
react(emoji: string): Promise<boolean>;
|
|
791
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
792
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
793
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
794
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
795
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
796
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
797
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
798
|
-
content(): Promise<Buffer>;
|
|
799
|
-
readonly index: import("./Message").IMessageIndex;
|
|
800
|
-
readonly raw: import("baileys").WAMessage;
|
|
801
|
-
get id(): string;
|
|
802
|
-
get cid(): string;
|
|
803
|
-
get mid(): string | null;
|
|
804
|
-
get me(): boolean;
|
|
805
|
-
get author(): string;
|
|
806
|
-
get edited(): boolean;
|
|
807
|
-
get type(): import("./Message").MessageType;
|
|
808
|
-
get caption(): string;
|
|
809
|
-
get mime(): string;
|
|
810
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
811
|
-
get starred(): boolean;
|
|
812
|
-
get forwarded(): boolean;
|
|
813
|
-
get created_at(): number;
|
|
814
|
-
get deleted_at(): number | null;
|
|
815
|
-
} | null>;
|
|
816
|
-
poll(cid: string, opts: import("./Message").PollOptions, mid?: string): Promise<{
|
|
817
|
-
edit(text: string): Promise<boolean>;
|
|
818
|
-
remove(): Promise<boolean>;
|
|
819
|
-
forward(to_cid: string): Promise<boolean>;
|
|
820
|
-
react(emoji: string): Promise<boolean>;
|
|
821
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
822
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
823
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
824
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
825
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
826
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
827
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
828
|
-
content(): Promise<Buffer>;
|
|
829
|
-
readonly index: import("./Message").IMessageIndex;
|
|
830
|
-
readonly raw: import("baileys").WAMessage;
|
|
831
|
-
get id(): string;
|
|
832
|
-
get cid(): string;
|
|
833
|
-
get mid(): string | null;
|
|
834
|
-
get me(): boolean;
|
|
835
|
-
get author(): string;
|
|
836
|
-
get edited(): boolean;
|
|
837
|
-
get type(): import("./Message").MessageType;
|
|
838
|
-
get caption(): string;
|
|
839
|
-
get mime(): string;
|
|
840
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
841
|
-
get starred(): boolean;
|
|
842
|
-
get forwarded(): boolean;
|
|
843
|
-
get created_at(): number;
|
|
844
|
-
get deleted_at(): number | null;
|
|
845
|
-
} | null>;
|
|
846
|
-
edit(cid: string, mid: string, text: string): Promise<boolean>;
|
|
847
|
-
remove(cid: string, mid: string): Promise<boolean>;
|
|
848
|
-
react(cid: string, mid: string, emoji: string): Promise<boolean>;
|
|
849
|
-
forward(cid: string, mid: string, to_cid: string): Promise<boolean>;
|
|
850
|
-
watch(cid: string, mid: string, handler: (msg: InstanceType</*elided*/ any>) => void): () => void;
|
|
851
|
-
} & {
|
|
852
|
-
_add_to_index: (cid: string, mid: string, timestamp: number) => Promise<void>;
|
|
853
|
-
_remove_from_index: (cid: string, mid: string) => Promise<void>;
|
|
854
|
-
_notify: (cid: string, mid: string) => void;
|
|
855
|
-
_build_index: (raw: import("baileys").WAMessage, edited?: boolean) => import("./Message").IMessageIndex;
|
|
856
|
-
}>[]>;
|
|
857
|
-
contact(): Promise<InstanceType</*elided*/ any> | null>;
|
|
858
|
-
readonly raw: import("./Chat").IChatRaw;
|
|
859
|
-
get id(): string;
|
|
860
|
-
get type(): "contact" | "group";
|
|
861
|
-
get name(): string;
|
|
862
|
-
get content(): string;
|
|
863
|
-
get pinned(): boolean;
|
|
864
|
-
get archived(): boolean;
|
|
865
|
-
get muted(): number;
|
|
866
|
-
get read(): boolean;
|
|
867
|
-
get readonly(): boolean;
|
|
868
|
-
} | null>;
|
|
869
|
-
readonly raw: IContactRaw;
|
|
870
|
-
/** JID único del contacto / Unique contact JID */
|
|
871
|
-
get id(): string;
|
|
872
|
-
/** Nombre del contacto / Contact name */
|
|
873
|
-
get name(): string;
|
|
874
|
-
/** URL de la foto de perfil o null / Profile picture URL or null */
|
|
875
|
-
get photo(): string | null;
|
|
876
|
-
/** Número de teléfono sin formato / Phone number without format */
|
|
877
|
-
get phone(): string;
|
|
878
|
-
/** Bio del contacto / Contact bio */
|
|
879
|
-
get content(): string;
|
|
880
|
-
}[]>;
|
|
881
|
-
/**
|
|
882
|
-
* @description Cambia el nombre de un contacto por su ID.
|
|
883
|
-
* Renames a contact by its ID.
|
|
884
|
-
*/
|
|
885
|
-
rename(uid: string, name: string): Promise<boolean>;
|
|
886
|
-
/**
|
|
887
|
-
* @description Actualiza los datos de un contacto desde WhatsApp por su ID.
|
|
888
|
-
* Refreshes a contact's data from WhatsApp by its ID.
|
|
889
|
-
*/
|
|
890
|
-
refresh(uid: string): Promise<{
|
|
891
|
-
/**
|
|
892
|
-
* @description Cambia el nombre del contacto.
|
|
893
|
-
* Renames the contact.
|
|
894
|
-
* @param name Nuevo nombre.
|
|
895
|
-
*/
|
|
896
|
-
rename(name: string): Promise<boolean>;
|
|
897
|
-
/**
|
|
898
|
-
* @description Actualiza los datos del perfil desde WhatsApp.
|
|
899
|
-
* Refreshes profile data from WhatsApp.
|
|
900
|
-
*/
|
|
901
|
-
refresh(): Promise</*elided*/ any | null>;
|
|
902
|
-
/**
|
|
903
|
-
* @description Obtiene o crea el chat con este contacto.
|
|
904
|
-
* Gets or creates the chat with this contact.
|
|
905
|
-
*/
|
|
906
|
-
chat(): Promise<{
|
|
907
|
-
refresh(): Promise</*elided*/ any | null>;
|
|
908
|
-
remove(): Promise<boolean>;
|
|
909
|
-
pin(value: boolean): Promise<boolean>;
|
|
910
|
-
archive(value: boolean): Promise<boolean>;
|
|
911
|
-
mute(duration: number | null): Promise<boolean>;
|
|
912
|
-
seen(): Promise<boolean>;
|
|
913
|
-
members(offset?: number, limit?: number): Promise<InstanceType</*elided*/ any>[]>;
|
|
914
|
-
messages(offset?: number, limit?: number): Promise<InstanceType<{
|
|
915
|
-
new (data: import("./Message").IMessage): {
|
|
916
|
-
edit(text: string): Promise<boolean>;
|
|
917
|
-
remove(): Promise<boolean>;
|
|
918
|
-
forward(to_cid: string): Promise<boolean>;
|
|
919
|
-
react(emoji: string): Promise<boolean>;
|
|
920
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
921
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
922
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
923
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
924
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
925
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
926
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
927
|
-
content(): Promise<Buffer>;
|
|
928
|
-
readonly index: import("./Message").IMessageIndex;
|
|
929
|
-
readonly raw: import("baileys").WAMessage;
|
|
930
|
-
get id(): string;
|
|
931
|
-
get cid(): string;
|
|
932
|
-
get mid(): string | null;
|
|
933
|
-
get me(): boolean;
|
|
934
|
-
get author(): string;
|
|
935
|
-
get edited(): boolean;
|
|
936
|
-
get type(): import("./Message").MessageType;
|
|
937
|
-
get caption(): string;
|
|
938
|
-
get mime(): string;
|
|
939
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
940
|
-
get starred(): boolean;
|
|
941
|
-
get forwarded(): boolean;
|
|
942
|
-
get created_at(): number;
|
|
943
|
-
get deleted_at(): number | null;
|
|
944
|
-
};
|
|
945
|
-
get(cid: string, mid: string): Promise<InstanceType</*elided*/ any> | null>;
|
|
946
|
-
list(cid: string, offset?: number, limit?: number): Promise<InstanceType</*elided*/ any>[]>;
|
|
947
|
-
count(cid: string): Promise<number>;
|
|
948
|
-
text(cid: string, text: string, mid?: string): Promise<{
|
|
949
|
-
edit(text: string): Promise<boolean>;
|
|
950
|
-
remove(): Promise<boolean>;
|
|
951
|
-
forward(to_cid: string): Promise<boolean>;
|
|
952
|
-
react(emoji: string): Promise<boolean>;
|
|
953
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
954
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
955
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
956
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
957
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
958
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
959
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
960
|
-
content(): Promise<Buffer>;
|
|
961
|
-
readonly index: import("./Message").IMessageIndex;
|
|
962
|
-
readonly raw: import("baileys").WAMessage;
|
|
963
|
-
get id(): string;
|
|
964
|
-
get cid(): string;
|
|
965
|
-
get mid(): string | null;
|
|
966
|
-
get me(): boolean;
|
|
967
|
-
get author(): string;
|
|
968
|
-
get edited(): boolean;
|
|
969
|
-
get type(): import("./Message").MessageType;
|
|
970
|
-
get caption(): string;
|
|
971
|
-
get mime(): string;
|
|
972
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
973
|
-
get starred(): boolean;
|
|
974
|
-
get forwarded(): boolean;
|
|
975
|
-
get created_at(): number;
|
|
976
|
-
get deleted_at(): number | null;
|
|
977
|
-
} | null>;
|
|
978
|
-
image(cid: string, buffer: Buffer, caption?: string, mid?: string): Promise<{
|
|
979
|
-
edit(text: string): Promise<boolean>;
|
|
980
|
-
remove(): Promise<boolean>;
|
|
981
|
-
forward(to_cid: string): Promise<boolean>;
|
|
982
|
-
react(emoji: string): Promise<boolean>;
|
|
983
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
984
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
985
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
986
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
987
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
988
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
989
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
990
|
-
content(): Promise<Buffer>;
|
|
991
|
-
readonly index: import("./Message").IMessageIndex;
|
|
992
|
-
readonly raw: import("baileys").WAMessage;
|
|
993
|
-
get id(): string;
|
|
994
|
-
get cid(): string;
|
|
995
|
-
get mid(): string | null;
|
|
996
|
-
get me(): boolean;
|
|
997
|
-
get author(): string;
|
|
998
|
-
get edited(): boolean;
|
|
999
|
-
get type(): import("./Message").MessageType;
|
|
1000
|
-
get caption(): string;
|
|
1001
|
-
get mime(): string;
|
|
1002
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
1003
|
-
get starred(): boolean;
|
|
1004
|
-
get forwarded(): boolean;
|
|
1005
|
-
get created_at(): number;
|
|
1006
|
-
get deleted_at(): number | null;
|
|
1007
|
-
} | null>;
|
|
1008
|
-
video(cid: string, buffer: Buffer, caption?: string, mid?: string): Promise<{
|
|
1009
|
-
edit(text: string): Promise<boolean>;
|
|
1010
|
-
remove(): Promise<boolean>;
|
|
1011
|
-
forward(to_cid: string): Promise<boolean>;
|
|
1012
|
-
react(emoji: string): Promise<boolean>;
|
|
1013
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
1014
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
1015
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
1016
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
1017
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
1018
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
1019
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
1020
|
-
content(): Promise<Buffer>;
|
|
1021
|
-
readonly index: import("./Message").IMessageIndex;
|
|
1022
|
-
readonly raw: import("baileys").WAMessage;
|
|
1023
|
-
get id(): string;
|
|
1024
|
-
get cid(): string;
|
|
1025
|
-
get mid(): string | null;
|
|
1026
|
-
get me(): boolean;
|
|
1027
|
-
get author(): string;
|
|
1028
|
-
get edited(): boolean;
|
|
1029
|
-
get type(): import("./Message").MessageType;
|
|
1030
|
-
get caption(): string;
|
|
1031
|
-
get mime(): string;
|
|
1032
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
1033
|
-
get starred(): boolean;
|
|
1034
|
-
get forwarded(): boolean;
|
|
1035
|
-
get created_at(): number;
|
|
1036
|
-
get deleted_at(): number | null;
|
|
1037
|
-
} | null>;
|
|
1038
|
-
audio(cid: string, buffer: Buffer, ptt?: boolean, mid?: string): Promise<{
|
|
1039
|
-
edit(text: string): Promise<boolean>;
|
|
1040
|
-
remove(): Promise<boolean>;
|
|
1041
|
-
forward(to_cid: string): Promise<boolean>;
|
|
1042
|
-
react(emoji: string): Promise<boolean>;
|
|
1043
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
1044
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
1045
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
1046
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
1047
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
1048
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
1049
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
1050
|
-
content(): Promise<Buffer>;
|
|
1051
|
-
readonly index: import("./Message").IMessageIndex;
|
|
1052
|
-
readonly raw: import("baileys").WAMessage;
|
|
1053
|
-
get id(): string;
|
|
1054
|
-
get cid(): string;
|
|
1055
|
-
get mid(): string | null;
|
|
1056
|
-
get me(): boolean;
|
|
1057
|
-
get author(): string;
|
|
1058
|
-
get edited(): boolean;
|
|
1059
|
-
get type(): import("./Message").MessageType;
|
|
1060
|
-
get caption(): string;
|
|
1061
|
-
get mime(): string;
|
|
1062
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
1063
|
-
get starred(): boolean;
|
|
1064
|
-
get forwarded(): boolean;
|
|
1065
|
-
get created_at(): number;
|
|
1066
|
-
get deleted_at(): number | null;
|
|
1067
|
-
} | null>;
|
|
1068
|
-
location(cid: string, opts: import("./Message").LocationOptions, mid?: string): Promise<{
|
|
1069
|
-
edit(text: string): Promise<boolean>;
|
|
1070
|
-
remove(): Promise<boolean>;
|
|
1071
|
-
forward(to_cid: string): Promise<boolean>;
|
|
1072
|
-
react(emoji: string): Promise<boolean>;
|
|
1073
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
1074
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
1075
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
1076
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
1077
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
1078
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
1079
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
1080
|
-
content(): Promise<Buffer>;
|
|
1081
|
-
readonly index: import("./Message").IMessageIndex;
|
|
1082
|
-
readonly raw: import("baileys").WAMessage;
|
|
1083
|
-
get id(): string;
|
|
1084
|
-
get cid(): string;
|
|
1085
|
-
get mid(): string | null;
|
|
1086
|
-
get me(): boolean;
|
|
1087
|
-
get author(): string;
|
|
1088
|
-
get edited(): boolean;
|
|
1089
|
-
get type(): import("./Message").MessageType;
|
|
1090
|
-
get caption(): string;
|
|
1091
|
-
get mime(): string;
|
|
1092
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
1093
|
-
get starred(): boolean;
|
|
1094
|
-
get forwarded(): boolean;
|
|
1095
|
-
get created_at(): number;
|
|
1096
|
-
get deleted_at(): number | null;
|
|
1097
|
-
} | null>;
|
|
1098
|
-
poll(cid: string, opts: import("./Message").PollOptions, mid?: string): Promise<{
|
|
1099
|
-
edit(text: string): Promise<boolean>;
|
|
1100
|
-
remove(): Promise<boolean>;
|
|
1101
|
-
forward(to_cid: string): Promise<boolean>;
|
|
1102
|
-
react(emoji: string): Promise<boolean>;
|
|
1103
|
-
text(content: string): Promise</*elided*/ any | null>;
|
|
1104
|
-
image(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
1105
|
-
video(buffer: Buffer, caption?: string): Promise</*elided*/ any | null>;
|
|
1106
|
-
audio(buffer: Buffer, ptt?: boolean): Promise</*elided*/ any | null>;
|
|
1107
|
-
location(opts: import("./Message").LocationOptions): Promise</*elided*/ any | null>;
|
|
1108
|
-
poll(opts: import("./Message").PollOptions): Promise</*elided*/ any | null>;
|
|
1109
|
-
stream(): Promise<import("node:stream").Readable>;
|
|
1110
|
-
content(): Promise<Buffer>;
|
|
1111
|
-
readonly index: import("./Message").IMessageIndex;
|
|
1112
|
-
readonly raw: import("baileys").WAMessage;
|
|
1113
|
-
get id(): string;
|
|
1114
|
-
get cid(): string;
|
|
1115
|
-
get mid(): string | null;
|
|
1116
|
-
get me(): boolean;
|
|
1117
|
-
get author(): string;
|
|
1118
|
-
get edited(): boolean;
|
|
1119
|
-
get type(): import("./Message").MessageType;
|
|
1120
|
-
get caption(): string;
|
|
1121
|
-
get mime(): string;
|
|
1122
|
-
get status(): import("./Message").MESSAGE_STATUS;
|
|
1123
|
-
get starred(): boolean;
|
|
1124
|
-
get forwarded(): boolean;
|
|
1125
|
-
get created_at(): number;
|
|
1126
|
-
get deleted_at(): number | null;
|
|
1127
|
-
} | null>;
|
|
1128
|
-
edit(cid: string, mid: string, text: string): Promise<boolean>;
|
|
1129
|
-
remove(cid: string, mid: string): Promise<boolean>;
|
|
1130
|
-
react(cid: string, mid: string, emoji: string): Promise<boolean>;
|
|
1131
|
-
forward(cid: string, mid: string, to_cid: string): Promise<boolean>;
|
|
1132
|
-
watch(cid: string, mid: string, handler: (msg: InstanceType</*elided*/ any>) => void): () => void;
|
|
1133
|
-
} & {
|
|
1134
|
-
_add_to_index: (cid: string, mid: string, timestamp: number) => Promise<void>;
|
|
1135
|
-
_remove_from_index: (cid: string, mid: string) => Promise<void>;
|
|
1136
|
-
_notify: (cid: string, mid: string) => void;
|
|
1137
|
-
_build_index: (raw: import("baileys").WAMessage, edited?: boolean) => import("./Message").IMessageIndex;
|
|
1138
|
-
}>[]>;
|
|
1139
|
-
contact(): Promise<InstanceType</*elided*/ any> | null>;
|
|
1140
|
-
readonly raw: import("./Chat").IChatRaw;
|
|
1141
|
-
get id(): string;
|
|
1142
|
-
get type(): "contact" | "group";
|
|
1143
|
-
get name(): string;
|
|
1144
|
-
get content(): string;
|
|
1145
|
-
get pinned(): boolean;
|
|
1146
|
-
get archived(): boolean;
|
|
1147
|
-
get muted(): number;
|
|
1148
|
-
get read(): boolean;
|
|
1149
|
-
get readonly(): boolean;
|
|
1150
|
-
} | null>;
|
|
1151
|
-
readonly raw: IContactRaw;
|
|
1152
|
-
/** JID único del contacto / Unique contact JID */
|
|
1153
|
-
get id(): string;
|
|
1154
|
-
/** Nombre del contacto / Contact name */
|
|
1155
|
-
get name(): string;
|
|
1156
|
-
/** URL de la foto de perfil o null / Profile picture URL or null */
|
|
1157
|
-
get photo(): string | null;
|
|
1158
|
-
/** Número de teléfono sin formato / Phone number without format */
|
|
1159
|
-
get phone(): string;
|
|
1160
|
-
/** Bio del contacto / Contact bio */
|
|
1161
|
-
get content(): string;
|
|
1162
|
-
} | null>;
|
|
1163
|
-
};
|