zaileys 0.29.20 → 1.1.0
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/LICENSE +21 -0
- package/README.md +351 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.mts +188 -220
- package/dist/index.d.ts +188 -220
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import NodeCache from 'node-cache';
|
|
1
2
|
import { Ora } from 'ora';
|
|
2
3
|
import { z } from 'zod';
|
|
4
|
+
import * as stream from 'stream';
|
|
3
5
|
import { Readable } from 'stream';
|
|
4
6
|
|
|
5
7
|
declare const ClientClassesType: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
@@ -36,6 +38,9 @@ declare const ClientClassesType: z.ZodDiscriminatedUnion<"authType", [z.ZodObjec
|
|
|
36
38
|
}>>>;
|
|
37
39
|
citation: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodPromise<z.ZodArray<z.ZodNumber, "many">>]>>>>, Record<string, number[]>, Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined>;
|
|
38
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
citation: Record<string, number[]>;
|
|
42
|
+
authType: "pairing";
|
|
43
|
+
phoneNumber: number;
|
|
39
44
|
ignoreMe: boolean;
|
|
40
45
|
showLogs: boolean;
|
|
41
46
|
autoMentions: boolean;
|
|
@@ -49,13 +54,11 @@ declare const ClientClassesType: z.ZodDiscriminatedUnion<"authType", [z.ZodObjec
|
|
|
49
54
|
url: string;
|
|
50
55
|
};
|
|
51
56
|
};
|
|
52
|
-
citation: Record<string, number[]>;
|
|
53
|
-
authType: "pairing";
|
|
54
|
-
phoneNumber: number;
|
|
55
57
|
prefix?: string | undefined;
|
|
56
58
|
}, {
|
|
57
59
|
authType: "pairing";
|
|
58
60
|
phoneNumber: number;
|
|
61
|
+
citation?: Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined;
|
|
59
62
|
prefix?: string | undefined;
|
|
60
63
|
ignoreMe?: boolean | undefined;
|
|
61
64
|
showLogs?: boolean | undefined;
|
|
@@ -70,7 +73,6 @@ declare const ClientClassesType: z.ZodDiscriminatedUnion<"authType", [z.ZodObjec
|
|
|
70
73
|
url?: string | undefined;
|
|
71
74
|
} | undefined;
|
|
72
75
|
} | undefined;
|
|
73
|
-
citation?: Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined;
|
|
74
76
|
}>, z.ZodObject<{
|
|
75
77
|
authType: z.ZodLiteral<"qr">;
|
|
76
78
|
phoneNumber: z.ZodOptional<z.ZodUndefined>;
|
|
@@ -105,6 +107,8 @@ declare const ClientClassesType: z.ZodDiscriminatedUnion<"authType", [z.ZodObjec
|
|
|
105
107
|
}>>>;
|
|
106
108
|
citation: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodPromise<z.ZodArray<z.ZodNumber, "many">>]>>>>, Record<string, number[]>, Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined>;
|
|
107
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
citation: Record<string, number[]>;
|
|
111
|
+
authType: "qr";
|
|
108
112
|
ignoreMe: boolean;
|
|
109
113
|
showLogs: boolean;
|
|
110
114
|
autoMentions: boolean;
|
|
@@ -118,12 +122,12 @@ declare const ClientClassesType: z.ZodDiscriminatedUnion<"authType", [z.ZodObjec
|
|
|
118
122
|
url: string;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
121
|
-
citation: Record<string, number[]>;
|
|
122
|
-
authType: "qr";
|
|
123
|
-
prefix?: string | undefined;
|
|
124
125
|
phoneNumber?: undefined;
|
|
126
|
+
prefix?: string | undefined;
|
|
125
127
|
}, {
|
|
126
128
|
authType: "qr";
|
|
129
|
+
citation?: Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined;
|
|
130
|
+
phoneNumber?: undefined;
|
|
127
131
|
prefix?: string | undefined;
|
|
128
132
|
ignoreMe?: boolean | undefined;
|
|
129
133
|
showLogs?: boolean | undefined;
|
|
@@ -138,16 +142,14 @@ declare const ClientClassesType: z.ZodDiscriminatedUnion<"authType", [z.ZodObjec
|
|
|
138
142
|
url?: string | undefined;
|
|
139
143
|
} | undefined;
|
|
140
144
|
} | undefined;
|
|
141
|
-
citation?: Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined;
|
|
142
|
-
phoneNumber?: undefined;
|
|
143
145
|
}>]>;
|
|
144
146
|
|
|
145
147
|
declare const EventConnectionType: z.ZodObject<{
|
|
146
148
|
status: z.ZodEnum<["connecting", "open", "close"]>;
|
|
147
149
|
}, "strip", z.ZodTypeAny, {
|
|
148
|
-
status: "
|
|
150
|
+
status: "open" | "connecting" | "close";
|
|
149
151
|
}, {
|
|
150
|
-
status: "
|
|
152
|
+
status: "open" | "connecting" | "close";
|
|
151
153
|
}>;
|
|
152
154
|
declare const EventMessagesType: z.ZodObject<{
|
|
153
155
|
chatId: z.ZodString;
|
|
@@ -180,14 +182,14 @@ declare const EventMessagesType: z.ZodObject<{
|
|
|
180
182
|
isForwarded: z.ZodBoolean;
|
|
181
183
|
citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
182
184
|
media: z.ZodNullable<z.ZodObject<{
|
|
183
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
184
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
185
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
186
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
185
187
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
186
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
187
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
188
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
189
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
188
190
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
189
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
190
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
191
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
192
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
191
193
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
192
194
|
message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
193
195
|
} & {
|
|
@@ -222,37 +224,36 @@ declare const EventMessagesType: z.ZodObject<{
|
|
|
222
224
|
isForwarded: z.ZodBoolean;
|
|
223
225
|
citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
224
226
|
media: z.ZodNullable<z.ZodObject<{
|
|
225
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
226
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
227
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
228
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
227
229
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
228
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
229
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
230
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
231
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
230
232
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
231
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
232
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
233
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
234
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
233
235
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
234
236
|
message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
235
237
|
}, "strip", z.ZodTypeAny, {
|
|
236
238
|
message: (...args: unknown[]) => Record<string, any>;
|
|
237
|
-
|
|
239
|
+
roomId: string;
|
|
240
|
+
isGroup: boolean;
|
|
238
241
|
text: string | null;
|
|
239
|
-
timestamp: number;
|
|
240
242
|
chatId: string;
|
|
241
243
|
channelId: string;
|
|
242
244
|
receiverId: string;
|
|
243
245
|
receiverName: string;
|
|
244
|
-
roomId: string;
|
|
245
246
|
roomName: string;
|
|
246
247
|
senderId: string;
|
|
247
248
|
senderName: string;
|
|
248
249
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
249
250
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
251
|
+
timestamp: number;
|
|
250
252
|
mentions: string[];
|
|
251
253
|
links: string[];
|
|
252
254
|
isPrefix: boolean;
|
|
253
255
|
isFromMe: boolean;
|
|
254
256
|
isTagMe: boolean;
|
|
255
|
-
isGroup: boolean;
|
|
256
257
|
isStory: boolean;
|
|
257
258
|
isViewOnce: boolean;
|
|
258
259
|
isEdited: boolean;
|
|
@@ -263,31 +264,31 @@ declare const EventMessagesType: z.ZodObject<{
|
|
|
263
264
|
isBroadcast: boolean;
|
|
264
265
|
isEphemeral: boolean;
|
|
265
266
|
isForwarded: boolean;
|
|
267
|
+
citation: Record<string, boolean> | null;
|
|
266
268
|
media: z.objectOutputType<{
|
|
267
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
268
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
269
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
270
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
269
271
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
270
272
|
}, {
|
|
271
273
|
message: (...args: unknown[]) => Record<string, any>;
|
|
272
|
-
|
|
274
|
+
roomId: string;
|
|
275
|
+
isGroup: boolean;
|
|
273
276
|
text: string | null;
|
|
274
|
-
timestamp: number;
|
|
275
277
|
chatId: string;
|
|
276
278
|
channelId: string;
|
|
277
279
|
receiverId: string;
|
|
278
280
|
receiverName: string;
|
|
279
|
-
roomId: string;
|
|
280
281
|
roomName: string;
|
|
281
282
|
senderId: string;
|
|
282
283
|
senderName: string;
|
|
283
284
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
284
285
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
286
|
+
timestamp: number;
|
|
285
287
|
mentions: string[];
|
|
286
288
|
links: string[];
|
|
287
289
|
isPrefix: boolean;
|
|
288
290
|
isFromMe: boolean;
|
|
289
291
|
isTagMe: boolean;
|
|
290
|
-
isGroup: boolean;
|
|
291
292
|
isStory: boolean;
|
|
292
293
|
isViewOnce: boolean;
|
|
293
294
|
isEdited: boolean;
|
|
@@ -298,32 +299,32 @@ declare const EventMessagesType: z.ZodObject<{
|
|
|
298
299
|
isBroadcast: boolean;
|
|
299
300
|
isEphemeral: boolean;
|
|
300
301
|
isForwarded: boolean;
|
|
302
|
+
citation: Record<string, boolean> | null;
|
|
301
303
|
media: z.objectInputType<{
|
|
302
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
303
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
304
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
305
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
304
306
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
305
307
|
}>>;
|
|
306
308
|
}, "strip", z.ZodTypeAny, {
|
|
307
309
|
message: (...args: unknown[]) => Record<string, any>;
|
|
308
|
-
|
|
310
|
+
roomId: string;
|
|
311
|
+
isGroup: boolean;
|
|
309
312
|
text: string | null;
|
|
310
|
-
timestamp: number;
|
|
311
313
|
chatId: string;
|
|
312
314
|
channelId: string;
|
|
313
315
|
receiverId: string;
|
|
314
316
|
receiverName: string;
|
|
315
|
-
roomId: string;
|
|
316
317
|
roomName: string;
|
|
317
318
|
senderId: string;
|
|
318
319
|
senderName: string;
|
|
319
320
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
320
321
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
322
|
+
timestamp: number;
|
|
321
323
|
mentions: string[];
|
|
322
324
|
links: string[];
|
|
323
325
|
isPrefix: boolean;
|
|
324
326
|
isFromMe: boolean;
|
|
325
327
|
isTagMe: boolean;
|
|
326
|
-
isGroup: boolean;
|
|
327
328
|
isStory: boolean;
|
|
328
329
|
isViewOnce: boolean;
|
|
329
330
|
isEdited: boolean;
|
|
@@ -334,31 +335,31 @@ declare const EventMessagesType: z.ZodObject<{
|
|
|
334
335
|
isBroadcast: boolean;
|
|
335
336
|
isEphemeral: boolean;
|
|
336
337
|
isForwarded: boolean;
|
|
338
|
+
citation: Record<string, boolean> | null;
|
|
337
339
|
media: z.objectOutputType<{
|
|
338
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
339
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
340
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
341
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
340
342
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
341
343
|
replied: {
|
|
342
344
|
message: (...args: unknown[]) => Record<string, any>;
|
|
343
|
-
|
|
345
|
+
roomId: string;
|
|
346
|
+
isGroup: boolean;
|
|
344
347
|
text: string | null;
|
|
345
|
-
timestamp: number;
|
|
346
348
|
chatId: string;
|
|
347
349
|
channelId: string;
|
|
348
350
|
receiverId: string;
|
|
349
351
|
receiverName: string;
|
|
350
|
-
roomId: string;
|
|
351
352
|
roomName: string;
|
|
352
353
|
senderId: string;
|
|
353
354
|
senderName: string;
|
|
354
355
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
355
356
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
357
|
+
timestamp: number;
|
|
356
358
|
mentions: string[];
|
|
357
359
|
links: string[];
|
|
358
360
|
isPrefix: boolean;
|
|
359
361
|
isFromMe: boolean;
|
|
360
362
|
isTagMe: boolean;
|
|
361
|
-
isGroup: boolean;
|
|
362
363
|
isStory: boolean;
|
|
363
364
|
isViewOnce: boolean;
|
|
364
365
|
isEdited: boolean;
|
|
@@ -369,32 +370,32 @@ declare const EventMessagesType: z.ZodObject<{
|
|
|
369
370
|
isBroadcast: boolean;
|
|
370
371
|
isEphemeral: boolean;
|
|
371
372
|
isForwarded: boolean;
|
|
373
|
+
citation: Record<string, boolean> | null;
|
|
372
374
|
media: z.objectOutputType<{
|
|
373
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
374
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
375
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
376
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
375
377
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
376
378
|
} | null;
|
|
377
379
|
}, {
|
|
378
380
|
message: (...args: unknown[]) => Record<string, any>;
|
|
379
|
-
|
|
381
|
+
roomId: string;
|
|
382
|
+
isGroup: boolean;
|
|
380
383
|
text: string | null;
|
|
381
|
-
timestamp: number;
|
|
382
384
|
chatId: string;
|
|
383
385
|
channelId: string;
|
|
384
386
|
receiverId: string;
|
|
385
387
|
receiverName: string;
|
|
386
|
-
roomId: string;
|
|
387
388
|
roomName: string;
|
|
388
389
|
senderId: string;
|
|
389
390
|
senderName: string;
|
|
390
391
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
391
392
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
393
|
+
timestamp: number;
|
|
392
394
|
mentions: string[];
|
|
393
395
|
links: string[];
|
|
394
396
|
isPrefix: boolean;
|
|
395
397
|
isFromMe: boolean;
|
|
396
398
|
isTagMe: boolean;
|
|
397
|
-
isGroup: boolean;
|
|
398
399
|
isStory: boolean;
|
|
399
400
|
isViewOnce: boolean;
|
|
400
401
|
isEdited: boolean;
|
|
@@ -405,31 +406,31 @@ declare const EventMessagesType: z.ZodObject<{
|
|
|
405
406
|
isBroadcast: boolean;
|
|
406
407
|
isEphemeral: boolean;
|
|
407
408
|
isForwarded: boolean;
|
|
409
|
+
citation: Record<string, boolean> | null;
|
|
408
410
|
media: z.objectInputType<{
|
|
409
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
410
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
411
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
412
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
411
413
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
412
414
|
replied: {
|
|
413
415
|
message: (...args: unknown[]) => Record<string, any>;
|
|
414
|
-
|
|
416
|
+
roomId: string;
|
|
417
|
+
isGroup: boolean;
|
|
415
418
|
text: string | null;
|
|
416
|
-
timestamp: number;
|
|
417
419
|
chatId: string;
|
|
418
420
|
channelId: string;
|
|
419
421
|
receiverId: string;
|
|
420
422
|
receiverName: string;
|
|
421
|
-
roomId: string;
|
|
422
423
|
roomName: string;
|
|
423
424
|
senderId: string;
|
|
424
425
|
senderName: string;
|
|
425
426
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
426
427
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
428
|
+
timestamp: number;
|
|
427
429
|
mentions: string[];
|
|
428
430
|
links: string[];
|
|
429
431
|
isPrefix: boolean;
|
|
430
432
|
isFromMe: boolean;
|
|
431
433
|
isTagMe: boolean;
|
|
432
|
-
isGroup: boolean;
|
|
433
434
|
isStory: boolean;
|
|
434
435
|
isViewOnce: boolean;
|
|
435
436
|
isEdited: boolean;
|
|
@@ -440,9 +441,10 @@ declare const EventMessagesType: z.ZodObject<{
|
|
|
440
441
|
isBroadcast: boolean;
|
|
441
442
|
isEphemeral: boolean;
|
|
442
443
|
isForwarded: boolean;
|
|
444
|
+
citation: Record<string, boolean> | null;
|
|
443
445
|
media: z.objectInputType<{
|
|
444
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
445
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
446
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
447
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
446
448
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
447
449
|
} | null;
|
|
448
450
|
}>;
|
|
@@ -457,22 +459,22 @@ declare const EventCallType: z.ZodObject<{
|
|
|
457
459
|
isGroup: z.ZodBoolean;
|
|
458
460
|
}, "strip", z.ZodTypeAny, {
|
|
459
461
|
status: "accept" | "offer" | "reject" | "ringing" | "terminate" | "timeout";
|
|
460
|
-
date: Date;
|
|
461
|
-
roomId: string;
|
|
462
|
-
isGroup: boolean;
|
|
463
462
|
callId: string;
|
|
463
|
+
roomId: string;
|
|
464
464
|
callerId: string;
|
|
465
|
+
date: Date;
|
|
465
466
|
offline: boolean;
|
|
466
467
|
isVideo: boolean;
|
|
468
|
+
isGroup: boolean;
|
|
467
469
|
}, {
|
|
468
470
|
status: "accept" | "offer" | "reject" | "ringing" | "terminate" | "timeout";
|
|
469
|
-
date: Date;
|
|
470
|
-
roomId: string;
|
|
471
|
-
isGroup: boolean;
|
|
472
471
|
callId: string;
|
|
472
|
+
roomId: string;
|
|
473
473
|
callerId: string;
|
|
474
|
+
date: Date;
|
|
474
475
|
offline: boolean;
|
|
475
476
|
isVideo: boolean;
|
|
477
|
+
isGroup: boolean;
|
|
476
478
|
}>;
|
|
477
479
|
declare const EventEnumType: z.ZodEnum<["connection", "messages", "calls"]>;
|
|
478
480
|
type EventEnumType = z.infer<typeof EventEnumType>;
|
|
@@ -647,36 +649,20 @@ declare const ContactWorkerBaseType: z.ZodObject<{
|
|
|
647
649
|
workAddress?: string | undefined;
|
|
648
650
|
avatar?: string | undefined;
|
|
649
651
|
}>;
|
|
650
|
-
declare const ReactionWorkerOptionsType: z.ZodObject<
|
|
651
|
-
roomId: z.ZodString;
|
|
652
|
-
asForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
653
|
-
asViewOnce: z.ZodOptional<z.ZodBoolean>;
|
|
654
|
-
verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
|
|
655
|
-
quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
656
|
-
}, "roomId"> & {
|
|
652
|
+
declare const ReactionWorkerOptionsType: z.ZodObject<{
|
|
657
653
|
message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
658
654
|
}, "strip", z.ZodTypeAny, {
|
|
659
655
|
message: (...args: unknown[]) => Record<string, any>;
|
|
660
|
-
roomId: string;
|
|
661
656
|
}, {
|
|
662
657
|
message: (...args: unknown[]) => Record<string, any>;
|
|
663
|
-
roomId: string;
|
|
664
658
|
}>;
|
|
665
659
|
declare const ReactionWorkerBaseType: z.ZodString;
|
|
666
|
-
declare const PinWorkerOptionsType: z.ZodObject<
|
|
667
|
-
roomId: z.ZodString;
|
|
668
|
-
asForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
669
|
-
asViewOnce: z.ZodOptional<z.ZodBoolean>;
|
|
670
|
-
verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
|
|
671
|
-
quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
672
|
-
}, "roomId"> & {
|
|
660
|
+
declare const PinWorkerOptionsType: z.ZodObject<{
|
|
673
661
|
message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
674
662
|
}, "strip", z.ZodTypeAny, {
|
|
675
663
|
message: (...args: unknown[]) => Record<string, any>;
|
|
676
|
-
roomId: string;
|
|
677
664
|
}, {
|
|
678
665
|
message: (...args: unknown[]) => Record<string, any>;
|
|
679
|
-
roomId: string;
|
|
680
666
|
}>;
|
|
681
667
|
declare const PinWorkerBaseType: z.ZodObject<{
|
|
682
668
|
action: z.ZodEnum<["pin", "unpin"]>;
|
|
@@ -712,33 +698,14 @@ declare const PollWorkerBaseType: z.ZodObject<{
|
|
|
712
698
|
answers: string[];
|
|
713
699
|
multipleAnswers?: boolean | undefined;
|
|
714
700
|
}>;
|
|
715
|
-
declare const EditWorkerOptionsType: z.ZodObject<
|
|
716
|
-
roomId: z.ZodString;
|
|
717
|
-
asForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
718
|
-
asViewOnce: z.ZodOptional<z.ZodBoolean>;
|
|
719
|
-
verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
|
|
720
|
-
quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
721
|
-
}, "roomId"> & {
|
|
701
|
+
declare const EditWorkerOptionsType: z.ZodObject<{
|
|
722
702
|
message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
723
703
|
}, "strip", z.ZodTypeAny, {
|
|
724
704
|
message: (...args: unknown[]) => Record<string, any>;
|
|
725
|
-
roomId: string;
|
|
726
705
|
}, {
|
|
727
706
|
message: (...args: unknown[]) => Record<string, any>;
|
|
728
|
-
roomId: string;
|
|
729
707
|
}>;
|
|
730
708
|
declare const EditWorkerBaseType: z.ZodString;
|
|
731
|
-
declare const DeleteWorkerOptionsType: z.ZodObject<Pick<{
|
|
732
|
-
roomId: z.ZodString;
|
|
733
|
-
asForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
734
|
-
asViewOnce: z.ZodOptional<z.ZodBoolean>;
|
|
735
|
-
verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
|
|
736
|
-
quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
737
|
-
}, "roomId">, "strip", z.ZodTypeAny, {
|
|
738
|
-
roomId: string;
|
|
739
|
-
}, {
|
|
740
|
-
roomId: string;
|
|
741
|
-
}>;
|
|
742
709
|
declare const DeleteWorkerBaseType: z.ZodObject<{
|
|
743
710
|
message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
744
711
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -792,11 +759,11 @@ declare const ProfileWorkerBaseOutputType: z.ZodObject<{
|
|
|
792
759
|
type: z.ZodLiteral<"user">;
|
|
793
760
|
id: z.ZodString;
|
|
794
761
|
}, "strip", z.ZodTypeAny, {
|
|
795
|
-
type: "user";
|
|
796
762
|
id: string;
|
|
797
|
-
}, {
|
|
798
763
|
type: "user";
|
|
764
|
+
}, {
|
|
799
765
|
id: string;
|
|
766
|
+
type: "user";
|
|
800
767
|
}>>;
|
|
801
768
|
roomCreatedAt: z.ZodOptional<z.ZodNumber>;
|
|
802
769
|
nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -806,27 +773,27 @@ declare const ProfileWorkerBaseOutputType: z.ZodObject<{
|
|
|
806
773
|
type: z.ZodEnum<["user", "admin", "superadmin"]>;
|
|
807
774
|
id: z.ZodString;
|
|
808
775
|
}, "strip", z.ZodTypeAny, {
|
|
809
|
-
type: "user" | "admin" | "superadmin";
|
|
810
776
|
id: string;
|
|
811
|
-
}, {
|
|
812
777
|
type: "user" | "admin" | "superadmin";
|
|
778
|
+
}, {
|
|
813
779
|
id: string;
|
|
780
|
+
type: "user" | "admin" | "superadmin";
|
|
814
781
|
}>, "many">>;
|
|
815
782
|
}, "strip", z.ZodTypeAny, {
|
|
816
|
-
type: "user" | "group";
|
|
817
783
|
id: string;
|
|
784
|
+
type: "user" | "group";
|
|
818
785
|
name: string;
|
|
819
|
-
avatar: string;
|
|
820
|
-
bio: string;
|
|
821
786
|
owner: {
|
|
822
|
-
type: "user";
|
|
823
787
|
id: string;
|
|
788
|
+
type: "user";
|
|
824
789
|
} | null;
|
|
790
|
+
avatar: string;
|
|
791
|
+
bio: string;
|
|
792
|
+
isCommunity?: boolean | undefined;
|
|
793
|
+
isCommunityAnnounce?: boolean | undefined;
|
|
825
794
|
ephemeralDuration?: number | undefined;
|
|
826
795
|
isRestrict?: boolean | undefined;
|
|
827
796
|
isAnnounce?: boolean | undefined;
|
|
828
|
-
isCommunity?: boolean | undefined;
|
|
829
|
-
isCommunityAnnounce?: boolean | undefined;
|
|
830
797
|
isJoinApprovalMode?: boolean | undefined;
|
|
831
798
|
isMemberAddMode?: boolean | undefined;
|
|
832
799
|
roomCreatedAt?: number | undefined;
|
|
@@ -834,24 +801,24 @@ declare const ProfileWorkerBaseOutputType: z.ZodObject<{
|
|
|
834
801
|
bioUpdatedAt?: number | undefined;
|
|
835
802
|
membersLength?: number | undefined;
|
|
836
803
|
members?: {
|
|
837
|
-
type: "user" | "admin" | "superadmin";
|
|
838
804
|
id: string;
|
|
805
|
+
type: "user" | "admin" | "superadmin";
|
|
839
806
|
}[] | undefined;
|
|
840
807
|
}, {
|
|
841
|
-
type: "user" | "group";
|
|
842
808
|
id: string;
|
|
809
|
+
type: "user" | "group";
|
|
843
810
|
name: string;
|
|
844
|
-
avatar: string;
|
|
845
|
-
bio: string;
|
|
846
811
|
owner: {
|
|
847
|
-
type: "user";
|
|
848
812
|
id: string;
|
|
813
|
+
type: "user";
|
|
849
814
|
} | null;
|
|
815
|
+
avatar: string;
|
|
816
|
+
bio: string;
|
|
817
|
+
isCommunity?: boolean | undefined;
|
|
818
|
+
isCommunityAnnounce?: boolean | undefined;
|
|
850
819
|
ephemeralDuration?: number | undefined;
|
|
851
820
|
isRestrict?: boolean | undefined;
|
|
852
821
|
isAnnounce?: boolean | undefined;
|
|
853
|
-
isCommunity?: boolean | undefined;
|
|
854
|
-
isCommunityAnnounce?: boolean | undefined;
|
|
855
822
|
isJoinApprovalMode?: boolean | undefined;
|
|
856
823
|
isMemberAddMode?: boolean | undefined;
|
|
857
824
|
roomCreatedAt?: number | undefined;
|
|
@@ -859,8 +826,8 @@ declare const ProfileWorkerBaseOutputType: z.ZodObject<{
|
|
|
859
826
|
bioUpdatedAt?: number | undefined;
|
|
860
827
|
membersLength?: number | undefined;
|
|
861
828
|
members?: {
|
|
862
|
-
type: "user" | "admin" | "superadmin";
|
|
863
829
|
id: string;
|
|
830
|
+
type: "user" | "admin" | "superadmin";
|
|
864
831
|
}[] | undefined;
|
|
865
832
|
}>;
|
|
866
833
|
declare const PresenceWorkerOptionsType: z.ZodObject<Pick<{
|
|
@@ -878,6 +845,7 @@ declare const PresenceWorkerBaseType: z.ZodEnum<["typing", "recording", "online"
|
|
|
878
845
|
|
|
879
846
|
declare class Worker {
|
|
880
847
|
private wa;
|
|
848
|
+
private parser;
|
|
881
849
|
constructor(wa: {
|
|
882
850
|
client: Client;
|
|
883
851
|
db: Client["db"];
|
|
@@ -886,25 +854,24 @@ declare class Worker {
|
|
|
886
854
|
private sendMessage;
|
|
887
855
|
text(text: z.infer<typeof TextWorkerBaseType>, options: z.infer<typeof TextWorkerOptionsType>): Promise<{
|
|
888
856
|
message: (...args: unknown[]) => Record<string, any>;
|
|
889
|
-
|
|
857
|
+
roomId: string;
|
|
858
|
+
isGroup: boolean;
|
|
890
859
|
text: string | null;
|
|
891
|
-
timestamp: number;
|
|
892
860
|
chatId: string;
|
|
893
861
|
channelId: string;
|
|
894
862
|
receiverId: string;
|
|
895
863
|
receiverName: string;
|
|
896
|
-
roomId: string;
|
|
897
864
|
roomName: string;
|
|
898
865
|
senderId: string;
|
|
899
866
|
senderName: string;
|
|
900
867
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
901
868
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
869
|
+
timestamp: number;
|
|
902
870
|
mentions: string[];
|
|
903
871
|
links: string[];
|
|
904
872
|
isPrefix: boolean;
|
|
905
873
|
isFromMe: boolean;
|
|
906
874
|
isTagMe: boolean;
|
|
907
|
-
isGroup: boolean;
|
|
908
875
|
isStory: boolean;
|
|
909
876
|
isViewOnce: boolean;
|
|
910
877
|
isEdited: boolean;
|
|
@@ -915,31 +882,31 @@ declare class Worker {
|
|
|
915
882
|
isBroadcast: boolean;
|
|
916
883
|
isEphemeral: boolean;
|
|
917
884
|
isForwarded: boolean;
|
|
885
|
+
citation: Record<string, boolean> | null;
|
|
918
886
|
media: z.objectOutputType<{
|
|
919
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
920
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
887
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
888
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
921
889
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
922
890
|
replied: {
|
|
923
891
|
message: (...args: unknown[]) => Record<string, any>;
|
|
924
|
-
|
|
892
|
+
roomId: string;
|
|
893
|
+
isGroup: boolean;
|
|
925
894
|
text: string | null;
|
|
926
|
-
timestamp: number;
|
|
927
895
|
chatId: string;
|
|
928
896
|
channelId: string;
|
|
929
897
|
receiverId: string;
|
|
930
898
|
receiverName: string;
|
|
931
|
-
roomId: string;
|
|
932
899
|
roomName: string;
|
|
933
900
|
senderId: string;
|
|
934
901
|
senderName: string;
|
|
935
902
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
936
903
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
904
|
+
timestamp: number;
|
|
937
905
|
mentions: string[];
|
|
938
906
|
links: string[];
|
|
939
907
|
isPrefix: boolean;
|
|
940
908
|
isFromMe: boolean;
|
|
941
909
|
isTagMe: boolean;
|
|
942
|
-
isGroup: boolean;
|
|
943
910
|
isStory: boolean;
|
|
944
911
|
isViewOnce: boolean;
|
|
945
912
|
isEdited: boolean;
|
|
@@ -950,33 +917,33 @@ declare class Worker {
|
|
|
950
917
|
isBroadcast: boolean;
|
|
951
918
|
isEphemeral: boolean;
|
|
952
919
|
isForwarded: boolean;
|
|
920
|
+
citation: Record<string, boolean> | null;
|
|
953
921
|
media: z.objectOutputType<{
|
|
954
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
955
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
922
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
923
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
956
924
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
957
925
|
} | null;
|
|
958
926
|
} | null | undefined>;
|
|
959
927
|
location(loc: z.infer<typeof LocationWorkerBaseType>, options: z.infer<typeof LocationWorkerOptionsType>): Promise<{
|
|
960
928
|
message: (...args: unknown[]) => Record<string, any>;
|
|
961
|
-
|
|
929
|
+
roomId: string;
|
|
930
|
+
isGroup: boolean;
|
|
962
931
|
text: string | null;
|
|
963
|
-
timestamp: number;
|
|
964
932
|
chatId: string;
|
|
965
933
|
channelId: string;
|
|
966
934
|
receiverId: string;
|
|
967
935
|
receiverName: string;
|
|
968
|
-
roomId: string;
|
|
969
936
|
roomName: string;
|
|
970
937
|
senderId: string;
|
|
971
938
|
senderName: string;
|
|
972
939
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
973
940
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
941
|
+
timestamp: number;
|
|
974
942
|
mentions: string[];
|
|
975
943
|
links: string[];
|
|
976
944
|
isPrefix: boolean;
|
|
977
945
|
isFromMe: boolean;
|
|
978
946
|
isTagMe: boolean;
|
|
979
|
-
isGroup: boolean;
|
|
980
947
|
isStory: boolean;
|
|
981
948
|
isViewOnce: boolean;
|
|
982
949
|
isEdited: boolean;
|
|
@@ -987,31 +954,31 @@ declare class Worker {
|
|
|
987
954
|
isBroadcast: boolean;
|
|
988
955
|
isEphemeral: boolean;
|
|
989
956
|
isForwarded: boolean;
|
|
957
|
+
citation: Record<string, boolean> | null;
|
|
990
958
|
media: z.objectOutputType<{
|
|
991
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
992
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
959
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
960
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
993
961
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
994
962
|
replied: {
|
|
995
963
|
message: (...args: unknown[]) => Record<string, any>;
|
|
996
|
-
|
|
964
|
+
roomId: string;
|
|
965
|
+
isGroup: boolean;
|
|
997
966
|
text: string | null;
|
|
998
|
-
timestamp: number;
|
|
999
967
|
chatId: string;
|
|
1000
968
|
channelId: string;
|
|
1001
969
|
receiverId: string;
|
|
1002
970
|
receiverName: string;
|
|
1003
|
-
roomId: string;
|
|
1004
971
|
roomName: string;
|
|
1005
972
|
senderId: string;
|
|
1006
973
|
senderName: string;
|
|
1007
974
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
1008
975
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
976
|
+
timestamp: number;
|
|
1009
977
|
mentions: string[];
|
|
1010
978
|
links: string[];
|
|
1011
979
|
isPrefix: boolean;
|
|
1012
980
|
isFromMe: boolean;
|
|
1013
981
|
isTagMe: boolean;
|
|
1014
|
-
isGroup: boolean;
|
|
1015
982
|
isStory: boolean;
|
|
1016
983
|
isViewOnce: boolean;
|
|
1017
984
|
isEdited: boolean;
|
|
@@ -1022,33 +989,33 @@ declare class Worker {
|
|
|
1022
989
|
isBroadcast: boolean;
|
|
1023
990
|
isEphemeral: boolean;
|
|
1024
991
|
isForwarded: boolean;
|
|
992
|
+
citation: Record<string, boolean> | null;
|
|
1025
993
|
media: z.objectOutputType<{
|
|
1026
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1027
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
994
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
995
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1028
996
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1029
997
|
} | null;
|
|
1030
998
|
} | null>;
|
|
1031
999
|
contact(vcard: z.infer<typeof ContactWorkerBaseType>, options: z.infer<typeof ContactWorkerOptionsType>): Promise<{
|
|
1032
1000
|
message: (...args: unknown[]) => Record<string, any>;
|
|
1033
|
-
|
|
1001
|
+
roomId: string;
|
|
1002
|
+
isGroup: boolean;
|
|
1034
1003
|
text: string | null;
|
|
1035
|
-
timestamp: number;
|
|
1036
1004
|
chatId: string;
|
|
1037
1005
|
channelId: string;
|
|
1038
1006
|
receiverId: string;
|
|
1039
1007
|
receiverName: string;
|
|
1040
|
-
roomId: string;
|
|
1041
1008
|
roomName: string;
|
|
1042
1009
|
senderId: string;
|
|
1043
1010
|
senderName: string;
|
|
1044
1011
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
1045
1012
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
1013
|
+
timestamp: number;
|
|
1046
1014
|
mentions: string[];
|
|
1047
1015
|
links: string[];
|
|
1048
1016
|
isPrefix: boolean;
|
|
1049
1017
|
isFromMe: boolean;
|
|
1050
1018
|
isTagMe: boolean;
|
|
1051
|
-
isGroup: boolean;
|
|
1052
1019
|
isStory: boolean;
|
|
1053
1020
|
isViewOnce: boolean;
|
|
1054
1021
|
isEdited: boolean;
|
|
@@ -1059,31 +1026,31 @@ declare class Worker {
|
|
|
1059
1026
|
isBroadcast: boolean;
|
|
1060
1027
|
isEphemeral: boolean;
|
|
1061
1028
|
isForwarded: boolean;
|
|
1029
|
+
citation: Record<string, boolean> | null;
|
|
1062
1030
|
media: z.objectOutputType<{
|
|
1063
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1064
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1031
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
1032
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1065
1033
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1066
1034
|
replied: {
|
|
1067
1035
|
message: (...args: unknown[]) => Record<string, any>;
|
|
1068
|
-
|
|
1036
|
+
roomId: string;
|
|
1037
|
+
isGroup: boolean;
|
|
1069
1038
|
text: string | null;
|
|
1070
|
-
timestamp: number;
|
|
1071
1039
|
chatId: string;
|
|
1072
1040
|
channelId: string;
|
|
1073
1041
|
receiverId: string;
|
|
1074
1042
|
receiverName: string;
|
|
1075
|
-
roomId: string;
|
|
1076
1043
|
roomName: string;
|
|
1077
1044
|
senderId: string;
|
|
1078
1045
|
senderName: string;
|
|
1079
1046
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
1080
1047
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
1048
|
+
timestamp: number;
|
|
1081
1049
|
mentions: string[];
|
|
1082
1050
|
links: string[];
|
|
1083
1051
|
isPrefix: boolean;
|
|
1084
1052
|
isFromMe: boolean;
|
|
1085
1053
|
isTagMe: boolean;
|
|
1086
|
-
isGroup: boolean;
|
|
1087
1054
|
isStory: boolean;
|
|
1088
1055
|
isViewOnce: boolean;
|
|
1089
1056
|
isEdited: boolean;
|
|
@@ -1094,33 +1061,33 @@ declare class Worker {
|
|
|
1094
1061
|
isBroadcast: boolean;
|
|
1095
1062
|
isEphemeral: boolean;
|
|
1096
1063
|
isForwarded: boolean;
|
|
1064
|
+
citation: Record<string, boolean> | null;
|
|
1097
1065
|
media: z.objectOutputType<{
|
|
1098
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1099
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1066
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
1067
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1100
1068
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1101
1069
|
} | null;
|
|
1102
1070
|
} | null>;
|
|
1103
1071
|
reaction(emoticon: z.infer<typeof ReactionWorkerBaseType>, options: z.infer<typeof ReactionWorkerOptionsType>): Promise<{
|
|
1104
1072
|
message: (...args: unknown[]) => Record<string, any>;
|
|
1105
|
-
|
|
1073
|
+
roomId: string;
|
|
1074
|
+
isGroup: boolean;
|
|
1106
1075
|
text: string | null;
|
|
1107
|
-
timestamp: number;
|
|
1108
1076
|
chatId: string;
|
|
1109
1077
|
channelId: string;
|
|
1110
1078
|
receiverId: string;
|
|
1111
1079
|
receiverName: string;
|
|
1112
|
-
roomId: string;
|
|
1113
1080
|
roomName: string;
|
|
1114
1081
|
senderId: string;
|
|
1115
1082
|
senderName: string;
|
|
1116
1083
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
1117
1084
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
1085
|
+
timestamp: number;
|
|
1118
1086
|
mentions: string[];
|
|
1119
1087
|
links: string[];
|
|
1120
1088
|
isPrefix: boolean;
|
|
1121
1089
|
isFromMe: boolean;
|
|
1122
1090
|
isTagMe: boolean;
|
|
1123
|
-
isGroup: boolean;
|
|
1124
1091
|
isStory: boolean;
|
|
1125
1092
|
isViewOnce: boolean;
|
|
1126
1093
|
isEdited: boolean;
|
|
@@ -1131,31 +1098,31 @@ declare class Worker {
|
|
|
1131
1098
|
isBroadcast: boolean;
|
|
1132
1099
|
isEphemeral: boolean;
|
|
1133
1100
|
isForwarded: boolean;
|
|
1101
|
+
citation: Record<string, boolean> | null;
|
|
1134
1102
|
media: z.objectOutputType<{
|
|
1135
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1136
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1103
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
1104
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1137
1105
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1138
1106
|
replied: {
|
|
1139
1107
|
message: (...args: unknown[]) => Record<string, any>;
|
|
1140
|
-
|
|
1108
|
+
roomId: string;
|
|
1109
|
+
isGroup: boolean;
|
|
1141
1110
|
text: string | null;
|
|
1142
|
-
timestamp: number;
|
|
1143
1111
|
chatId: string;
|
|
1144
1112
|
channelId: string;
|
|
1145
1113
|
receiverId: string;
|
|
1146
1114
|
receiverName: string;
|
|
1147
|
-
roomId: string;
|
|
1148
1115
|
roomName: string;
|
|
1149
1116
|
senderId: string;
|
|
1150
1117
|
senderName: string;
|
|
1151
1118
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
1152
1119
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
1120
|
+
timestamp: number;
|
|
1153
1121
|
mentions: string[];
|
|
1154
1122
|
links: string[];
|
|
1155
1123
|
isPrefix: boolean;
|
|
1156
1124
|
isFromMe: boolean;
|
|
1157
1125
|
isTagMe: boolean;
|
|
1158
|
-
isGroup: boolean;
|
|
1159
1126
|
isStory: boolean;
|
|
1160
1127
|
isViewOnce: boolean;
|
|
1161
1128
|
isEdited: boolean;
|
|
@@ -1166,33 +1133,33 @@ declare class Worker {
|
|
|
1166
1133
|
isBroadcast: boolean;
|
|
1167
1134
|
isEphemeral: boolean;
|
|
1168
1135
|
isForwarded: boolean;
|
|
1136
|
+
citation: Record<string, boolean> | null;
|
|
1169
1137
|
media: z.objectOutputType<{
|
|
1170
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1171
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1138
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
1139
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1172
1140
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1173
1141
|
} | null;
|
|
1174
1142
|
} | null>;
|
|
1175
1143
|
pin(pin: z.infer<typeof PinWorkerBaseType>, options: z.infer<typeof PinWorkerOptionsType>): Promise<{
|
|
1176
1144
|
message: (...args: unknown[]) => Record<string, any>;
|
|
1177
|
-
|
|
1145
|
+
roomId: string;
|
|
1146
|
+
isGroup: boolean;
|
|
1178
1147
|
text: string | null;
|
|
1179
|
-
timestamp: number;
|
|
1180
1148
|
chatId: string;
|
|
1181
1149
|
channelId: string;
|
|
1182
1150
|
receiverId: string;
|
|
1183
1151
|
receiverName: string;
|
|
1184
|
-
roomId: string;
|
|
1185
1152
|
roomName: string;
|
|
1186
1153
|
senderId: string;
|
|
1187
1154
|
senderName: string;
|
|
1188
1155
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
1189
1156
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
1157
|
+
timestamp: number;
|
|
1190
1158
|
mentions: string[];
|
|
1191
1159
|
links: string[];
|
|
1192
1160
|
isPrefix: boolean;
|
|
1193
1161
|
isFromMe: boolean;
|
|
1194
1162
|
isTagMe: boolean;
|
|
1195
|
-
isGroup: boolean;
|
|
1196
1163
|
isStory: boolean;
|
|
1197
1164
|
isViewOnce: boolean;
|
|
1198
1165
|
isEdited: boolean;
|
|
@@ -1203,31 +1170,31 @@ declare class Worker {
|
|
|
1203
1170
|
isBroadcast: boolean;
|
|
1204
1171
|
isEphemeral: boolean;
|
|
1205
1172
|
isForwarded: boolean;
|
|
1173
|
+
citation: Record<string, boolean> | null;
|
|
1206
1174
|
media: z.objectOutputType<{
|
|
1207
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1208
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1175
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
1176
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1209
1177
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1210
1178
|
replied: {
|
|
1211
1179
|
message: (...args: unknown[]) => Record<string, any>;
|
|
1212
|
-
|
|
1180
|
+
roomId: string;
|
|
1181
|
+
isGroup: boolean;
|
|
1213
1182
|
text: string | null;
|
|
1214
|
-
timestamp: number;
|
|
1215
1183
|
chatId: string;
|
|
1216
1184
|
channelId: string;
|
|
1217
1185
|
receiverId: string;
|
|
1218
1186
|
receiverName: string;
|
|
1219
|
-
roomId: string;
|
|
1220
1187
|
roomName: string;
|
|
1221
1188
|
senderId: string;
|
|
1222
1189
|
senderName: string;
|
|
1223
1190
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
1224
1191
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
1192
|
+
timestamp: number;
|
|
1225
1193
|
mentions: string[];
|
|
1226
1194
|
links: string[];
|
|
1227
1195
|
isPrefix: boolean;
|
|
1228
1196
|
isFromMe: boolean;
|
|
1229
1197
|
isTagMe: boolean;
|
|
1230
|
-
isGroup: boolean;
|
|
1231
1198
|
isStory: boolean;
|
|
1232
1199
|
isViewOnce: boolean;
|
|
1233
1200
|
isEdited: boolean;
|
|
@@ -1238,33 +1205,33 @@ declare class Worker {
|
|
|
1238
1205
|
isBroadcast: boolean;
|
|
1239
1206
|
isEphemeral: boolean;
|
|
1240
1207
|
isForwarded: boolean;
|
|
1208
|
+
citation: Record<string, boolean> | null;
|
|
1241
1209
|
media: z.objectOutputType<{
|
|
1242
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1243
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1210
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
1211
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1244
1212
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1245
1213
|
} | null;
|
|
1246
1214
|
} | null>;
|
|
1247
1215
|
poll(poll: z.infer<typeof PollWorkerBaseType>, options: z.infer<typeof PollWorkerOptionsType>): Promise<{
|
|
1248
1216
|
message: (...args: unknown[]) => Record<string, any>;
|
|
1249
|
-
|
|
1217
|
+
roomId: string;
|
|
1218
|
+
isGroup: boolean;
|
|
1250
1219
|
text: string | null;
|
|
1251
|
-
timestamp: number;
|
|
1252
1220
|
chatId: string;
|
|
1253
1221
|
channelId: string;
|
|
1254
1222
|
receiverId: string;
|
|
1255
1223
|
receiverName: string;
|
|
1256
|
-
roomId: string;
|
|
1257
1224
|
roomName: string;
|
|
1258
1225
|
senderId: string;
|
|
1259
1226
|
senderName: string;
|
|
1260
1227
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
1261
1228
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
1229
|
+
timestamp: number;
|
|
1262
1230
|
mentions: string[];
|
|
1263
1231
|
links: string[];
|
|
1264
1232
|
isPrefix: boolean;
|
|
1265
1233
|
isFromMe: boolean;
|
|
1266
1234
|
isTagMe: boolean;
|
|
1267
|
-
isGroup: boolean;
|
|
1268
1235
|
isStory: boolean;
|
|
1269
1236
|
isViewOnce: boolean;
|
|
1270
1237
|
isEdited: boolean;
|
|
@@ -1275,31 +1242,31 @@ declare class Worker {
|
|
|
1275
1242
|
isBroadcast: boolean;
|
|
1276
1243
|
isEphemeral: boolean;
|
|
1277
1244
|
isForwarded: boolean;
|
|
1245
|
+
citation: Record<string, boolean> | null;
|
|
1278
1246
|
media: z.objectOutputType<{
|
|
1279
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1280
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1247
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
1248
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1281
1249
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1282
1250
|
replied: {
|
|
1283
1251
|
message: (...args: unknown[]) => Record<string, any>;
|
|
1284
|
-
|
|
1252
|
+
roomId: string;
|
|
1253
|
+
isGroup: boolean;
|
|
1285
1254
|
text: string | null;
|
|
1286
|
-
timestamp: number;
|
|
1287
1255
|
chatId: string;
|
|
1288
1256
|
channelId: string;
|
|
1289
1257
|
receiverId: string;
|
|
1290
1258
|
receiverName: string;
|
|
1291
|
-
roomId: string;
|
|
1292
1259
|
roomName: string;
|
|
1293
1260
|
senderId: string;
|
|
1294
1261
|
senderName: string;
|
|
1295
1262
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
1296
1263
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
1264
|
+
timestamp: number;
|
|
1297
1265
|
mentions: string[];
|
|
1298
1266
|
links: string[];
|
|
1299
1267
|
isPrefix: boolean;
|
|
1300
1268
|
isFromMe: boolean;
|
|
1301
1269
|
isTagMe: boolean;
|
|
1302
|
-
isGroup: boolean;
|
|
1303
1270
|
isStory: boolean;
|
|
1304
1271
|
isViewOnce: boolean;
|
|
1305
1272
|
isEdited: boolean;
|
|
@@ -1310,33 +1277,33 @@ declare class Worker {
|
|
|
1310
1277
|
isBroadcast: boolean;
|
|
1311
1278
|
isEphemeral: boolean;
|
|
1312
1279
|
isForwarded: boolean;
|
|
1280
|
+
citation: Record<string, boolean> | null;
|
|
1313
1281
|
media: z.objectOutputType<{
|
|
1314
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1315
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1282
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
1283
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1316
1284
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1317
1285
|
} | null;
|
|
1318
1286
|
} | null>;
|
|
1319
1287
|
edit(text: z.infer<typeof EditWorkerBaseType>, options: z.infer<typeof EditWorkerOptionsType>): Promise<{
|
|
1320
1288
|
message: (...args: unknown[]) => Record<string, any>;
|
|
1321
|
-
|
|
1289
|
+
roomId: string;
|
|
1290
|
+
isGroup: boolean;
|
|
1322
1291
|
text: string | null;
|
|
1323
|
-
timestamp: number;
|
|
1324
1292
|
chatId: string;
|
|
1325
1293
|
channelId: string;
|
|
1326
1294
|
receiverId: string;
|
|
1327
1295
|
receiverName: string;
|
|
1328
|
-
roomId: string;
|
|
1329
1296
|
roomName: string;
|
|
1330
1297
|
senderId: string;
|
|
1331
1298
|
senderName: string;
|
|
1332
1299
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
1333
1300
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
1301
|
+
timestamp: number;
|
|
1334
1302
|
mentions: string[];
|
|
1335
1303
|
links: string[];
|
|
1336
1304
|
isPrefix: boolean;
|
|
1337
1305
|
isFromMe: boolean;
|
|
1338
1306
|
isTagMe: boolean;
|
|
1339
|
-
isGroup: boolean;
|
|
1340
1307
|
isStory: boolean;
|
|
1341
1308
|
isViewOnce: boolean;
|
|
1342
1309
|
isEdited: boolean;
|
|
@@ -1347,31 +1314,31 @@ declare class Worker {
|
|
|
1347
1314
|
isBroadcast: boolean;
|
|
1348
1315
|
isEphemeral: boolean;
|
|
1349
1316
|
isForwarded: boolean;
|
|
1317
|
+
citation: Record<string, boolean> | null;
|
|
1350
1318
|
media: z.objectOutputType<{
|
|
1351
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1352
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1319
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
1320
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1353
1321
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1354
1322
|
replied: {
|
|
1355
1323
|
message: (...args: unknown[]) => Record<string, any>;
|
|
1356
|
-
|
|
1324
|
+
roomId: string;
|
|
1325
|
+
isGroup: boolean;
|
|
1357
1326
|
text: string | null;
|
|
1358
|
-
timestamp: number;
|
|
1359
1327
|
chatId: string;
|
|
1360
1328
|
channelId: string;
|
|
1361
1329
|
receiverId: string;
|
|
1362
1330
|
receiverName: string;
|
|
1363
|
-
roomId: string;
|
|
1364
1331
|
roomName: string;
|
|
1365
1332
|
senderId: string;
|
|
1366
1333
|
senderName: string;
|
|
1367
1334
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
1368
1335
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
1336
|
+
timestamp: number;
|
|
1369
1337
|
mentions: string[];
|
|
1370
1338
|
links: string[];
|
|
1371
1339
|
isPrefix: boolean;
|
|
1372
1340
|
isFromMe: boolean;
|
|
1373
1341
|
isTagMe: boolean;
|
|
1374
|
-
isGroup: boolean;
|
|
1375
1342
|
isStory: boolean;
|
|
1376
1343
|
isViewOnce: boolean;
|
|
1377
1344
|
isEdited: boolean;
|
|
@@ -1382,33 +1349,33 @@ declare class Worker {
|
|
|
1382
1349
|
isBroadcast: boolean;
|
|
1383
1350
|
isEphemeral: boolean;
|
|
1384
1351
|
isForwarded: boolean;
|
|
1352
|
+
citation: Record<string, boolean> | null;
|
|
1385
1353
|
media: z.objectOutputType<{
|
|
1386
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1387
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1354
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
1355
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1388
1356
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1389
1357
|
} | null;
|
|
1390
1358
|
} | null>;
|
|
1391
|
-
delete(del: z.infer<typeof DeleteWorkerBaseType
|
|
1359
|
+
delete(del: z.infer<typeof DeleteWorkerBaseType>): Promise<{
|
|
1392
1360
|
message: (...args: unknown[]) => Record<string, any>;
|
|
1393
|
-
|
|
1361
|
+
roomId: string;
|
|
1362
|
+
isGroup: boolean;
|
|
1394
1363
|
text: string | null;
|
|
1395
|
-
timestamp: number;
|
|
1396
1364
|
chatId: string;
|
|
1397
1365
|
channelId: string;
|
|
1398
1366
|
receiverId: string;
|
|
1399
1367
|
receiverName: string;
|
|
1400
|
-
roomId: string;
|
|
1401
1368
|
roomName: string;
|
|
1402
1369
|
senderId: string;
|
|
1403
1370
|
senderName: string;
|
|
1404
1371
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
1405
1372
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
1373
|
+
timestamp: number;
|
|
1406
1374
|
mentions: string[];
|
|
1407
1375
|
links: string[];
|
|
1408
1376
|
isPrefix: boolean;
|
|
1409
1377
|
isFromMe: boolean;
|
|
1410
1378
|
isTagMe: boolean;
|
|
1411
|
-
isGroup: boolean;
|
|
1412
1379
|
isStory: boolean;
|
|
1413
1380
|
isViewOnce: boolean;
|
|
1414
1381
|
isEdited: boolean;
|
|
@@ -1419,31 +1386,31 @@ declare class Worker {
|
|
|
1419
1386
|
isBroadcast: boolean;
|
|
1420
1387
|
isEphemeral: boolean;
|
|
1421
1388
|
isForwarded: boolean;
|
|
1389
|
+
citation: Record<string, boolean> | null;
|
|
1422
1390
|
media: z.objectOutputType<{
|
|
1423
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1424
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1391
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
1392
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1425
1393
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1426
1394
|
replied: {
|
|
1427
1395
|
message: (...args: unknown[]) => Record<string, any>;
|
|
1428
|
-
|
|
1396
|
+
roomId: string;
|
|
1397
|
+
isGroup: boolean;
|
|
1429
1398
|
text: string | null;
|
|
1430
|
-
timestamp: number;
|
|
1431
1399
|
chatId: string;
|
|
1432
1400
|
channelId: string;
|
|
1433
1401
|
receiverId: string;
|
|
1434
1402
|
receiverName: string;
|
|
1435
|
-
roomId: string;
|
|
1436
1403
|
roomName: string;
|
|
1437
1404
|
senderId: string;
|
|
1438
1405
|
senderName: string;
|
|
1439
1406
|
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
1440
1407
|
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
1408
|
+
timestamp: number;
|
|
1441
1409
|
mentions: string[];
|
|
1442
1410
|
links: string[];
|
|
1443
1411
|
isPrefix: boolean;
|
|
1444
1412
|
isFromMe: boolean;
|
|
1445
1413
|
isTagMe: boolean;
|
|
1446
|
-
isGroup: boolean;
|
|
1447
1414
|
isStory: boolean;
|
|
1448
1415
|
isViewOnce: boolean;
|
|
1449
1416
|
isEdited: boolean;
|
|
@@ -1454,9 +1421,10 @@ declare class Worker {
|
|
|
1454
1421
|
isBroadcast: boolean;
|
|
1455
1422
|
isEphemeral: boolean;
|
|
1456
1423
|
isForwarded: boolean;
|
|
1424
|
+
citation: Record<string, boolean> | null;
|
|
1457
1425
|
media: z.objectOutputType<{
|
|
1458
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1459
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.
|
|
1426
|
+
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
1427
|
+
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1460
1428
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1461
1429
|
} | null;
|
|
1462
1430
|
} | null>;
|
|
@@ -1468,12 +1436,12 @@ declare class Worker {
|
|
|
1468
1436
|
|
|
1469
1437
|
declare class Client {
|
|
1470
1438
|
private props;
|
|
1471
|
-
options: z.infer<typeof ClientClassesType
|
|
1439
|
+
options: z.infer<typeof ClientClassesType>;
|
|
1440
|
+
cache: NodeCache;
|
|
1472
1441
|
private chatId;
|
|
1473
1442
|
private logger;
|
|
1474
1443
|
private db;
|
|
1475
1444
|
private socket;
|
|
1476
|
-
private groupCache;
|
|
1477
1445
|
private events;
|
|
1478
1446
|
private spinners;
|
|
1479
1447
|
private worker;
|