zaileys 1.1.18 → 1.1.20

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/dist/index.d.mts CHANGED
@@ -21,58 +21,58 @@ declare const ClientClassesType: z.ZodDiscriminatedUnion<"authType", [z.ZodObjec
21
21
  connection: z.ZodDefault<z.ZodOptional<z.ZodObject<{
22
22
  url: z.ZodDefault<z.ZodString>;
23
23
  }, "strip", z.ZodTypeAny, {
24
- url: string;
24
+ url?: string;
25
25
  }, {
26
- url?: string | undefined;
26
+ url?: string;
27
27
  }>>>;
28
28
  }, "strip", z.ZodTypeAny, {
29
- type: "sqlite" | "postgresql" | "mysql";
30
- connection: {
31
- url: string;
29
+ type?: "sqlite" | "postgresql" | "mysql";
30
+ connection?: {
31
+ url?: string;
32
32
  };
33
33
  }, {
34
- type?: "sqlite" | "postgresql" | "mysql" | undefined;
34
+ type?: "sqlite" | "postgresql" | "mysql";
35
35
  connection?: {
36
- url?: string | undefined;
37
- } | undefined;
36
+ url?: string;
37
+ };
38
38
  }>>>;
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>;
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[]>>>;
40
40
  }, "strip", z.ZodTypeAny, {
41
- citation: Record<string, number[]>;
42
- authType: "pairing";
43
- phoneNumber: number;
44
- ignoreMe: boolean;
45
- showLogs: boolean;
46
- autoMentions: boolean;
47
- autoOnline: boolean;
48
- autoRead: boolean;
49
- autoPresence: boolean;
50
- autoRejectCall: boolean;
51
- database: {
52
- type: "sqlite" | "postgresql" | "mysql";
53
- connection: {
54
- url: string;
41
+ citation?: Record<string, number[]>;
42
+ authType?: "pairing";
43
+ phoneNumber?: number;
44
+ prefix?: string;
45
+ ignoreMe?: boolean;
46
+ showLogs?: boolean;
47
+ autoMentions?: boolean;
48
+ autoOnline?: boolean;
49
+ autoRead?: boolean;
50
+ autoPresence?: boolean;
51
+ autoRejectCall?: boolean;
52
+ database?: {
53
+ type?: "sqlite" | "postgresql" | "mysql";
54
+ connection?: {
55
+ url?: string;
55
56
  };
56
57
  };
57
- prefix?: string | undefined;
58
58
  }, {
59
- authType: "pairing";
60
- phoneNumber: number;
61
- citation?: Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined;
62
- prefix?: string | undefined;
63
- ignoreMe?: boolean | undefined;
64
- showLogs?: boolean | undefined;
65
- autoMentions?: boolean | undefined;
66
- autoOnline?: boolean | undefined;
67
- autoRead?: boolean | undefined;
68
- autoPresence?: boolean | undefined;
69
- autoRejectCall?: boolean | undefined;
59
+ citation?: Record<string, (...args: unknown[]) => number[] | Promise<number[]>>;
60
+ authType?: "pairing";
61
+ phoneNumber?: number;
62
+ prefix?: string;
63
+ ignoreMe?: boolean;
64
+ showLogs?: boolean;
65
+ autoMentions?: boolean;
66
+ autoOnline?: boolean;
67
+ autoRead?: boolean;
68
+ autoPresence?: boolean;
69
+ autoRejectCall?: boolean;
70
70
  database?: {
71
- type?: "sqlite" | "postgresql" | "mysql" | undefined;
71
+ type?: "sqlite" | "postgresql" | "mysql";
72
72
  connection?: {
73
- url?: string | undefined;
74
- } | undefined;
75
- } | undefined;
73
+ url?: string;
74
+ };
75
+ };
76
76
  }>, z.ZodObject<{
77
77
  authType: z.ZodLiteral<"qr">;
78
78
  phoneNumber: z.ZodOptional<z.ZodUndefined>;
@@ -90,66 +90,66 @@ declare const ClientClassesType: z.ZodDiscriminatedUnion<"authType", [z.ZodObjec
90
90
  connection: z.ZodDefault<z.ZodOptional<z.ZodObject<{
91
91
  url: z.ZodDefault<z.ZodString>;
92
92
  }, "strip", z.ZodTypeAny, {
93
- url: string;
93
+ url?: string;
94
94
  }, {
95
- url?: string | undefined;
95
+ url?: string;
96
96
  }>>>;
97
97
  }, "strip", z.ZodTypeAny, {
98
- type: "sqlite" | "postgresql" | "mysql";
99
- connection: {
100
- url: string;
98
+ type?: "sqlite" | "postgresql" | "mysql";
99
+ connection?: {
100
+ url?: string;
101
101
  };
102
102
  }, {
103
- type?: "sqlite" | "postgresql" | "mysql" | undefined;
103
+ type?: "sqlite" | "postgresql" | "mysql";
104
104
  connection?: {
105
- url?: string | undefined;
106
- } | undefined;
105
+ url?: string;
106
+ };
107
107
  }>>>;
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>;
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[]>>>;
109
109
  }, "strip", z.ZodTypeAny, {
110
- citation: Record<string, number[]>;
111
- authType: "qr";
112
- ignoreMe: boolean;
113
- showLogs: boolean;
114
- autoMentions: boolean;
115
- autoOnline: boolean;
116
- autoRead: boolean;
117
- autoPresence: boolean;
118
- autoRejectCall: boolean;
119
- database: {
120
- type: "sqlite" | "postgresql" | "mysql";
121
- connection: {
122
- url: string;
110
+ citation?: Record<string, number[]>;
111
+ authType?: "qr";
112
+ phoneNumber?: undefined;
113
+ prefix?: string;
114
+ ignoreMe?: boolean;
115
+ showLogs?: boolean;
116
+ autoMentions?: boolean;
117
+ autoOnline?: boolean;
118
+ autoRead?: boolean;
119
+ autoPresence?: boolean;
120
+ autoRejectCall?: boolean;
121
+ database?: {
122
+ type?: "sqlite" | "postgresql" | "mysql";
123
+ connection?: {
124
+ url?: string;
123
125
  };
124
126
  };
125
- phoneNumber?: undefined;
126
- prefix?: string | undefined;
127
127
  }, {
128
- authType: "qr";
129
- citation?: Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined;
128
+ citation?: Record<string, (...args: unknown[]) => number[] | Promise<number[]>>;
129
+ authType?: "qr";
130
130
  phoneNumber?: undefined;
131
- prefix?: string | undefined;
132
- ignoreMe?: boolean | undefined;
133
- showLogs?: boolean | undefined;
134
- autoMentions?: boolean | undefined;
135
- autoOnline?: boolean | undefined;
136
- autoRead?: boolean | undefined;
137
- autoPresence?: boolean | undefined;
138
- autoRejectCall?: boolean | undefined;
131
+ prefix?: string;
132
+ ignoreMe?: boolean;
133
+ showLogs?: boolean;
134
+ autoMentions?: boolean;
135
+ autoOnline?: boolean;
136
+ autoRead?: boolean;
137
+ autoPresence?: boolean;
138
+ autoRejectCall?: boolean;
139
139
  database?: {
140
- type?: "sqlite" | "postgresql" | "mysql" | undefined;
140
+ type?: "sqlite" | "postgresql" | "mysql";
141
141
  connection?: {
142
- url?: string | undefined;
143
- } | undefined;
144
- } | undefined;
142
+ url?: string;
143
+ };
144
+ };
145
145
  }>]>;
146
146
 
147
147
  declare const EventConnectionType: z.ZodObject<{
148
148
  status: z.ZodEnum<["connecting", "open", "close"]>;
149
149
  }, "strip", z.ZodTypeAny, {
150
- status: "open" | "connecting" | "close";
150
+ status?: "open" | "connecting" | "close";
151
151
  }, {
152
- status: "open" | "connecting" | "close";
152
+ status?: "open" | "connecting" | "close";
153
153
  }>;
154
154
  declare const EventMessagesType: z.ZodObject<{
155
155
  chatId: z.ZodString;
@@ -235,218 +235,230 @@ declare const EventMessagesType: z.ZodObject<{
235
235
  }, z.ZodTypeAny, "passthrough">>>;
236
236
  message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
237
237
  }, "strip", z.ZodTypeAny, {
238
- message: (...args: unknown[]) => Record<string, any>;
239
- roomId: string;
240
- isGroup: boolean;
241
- text: string | null;
242
- chatId: string;
243
- channelId: string;
244
- receiverId: string;
245
- receiverName: string;
246
- roomName: string;
247
- senderId: string;
248
- senderName: string;
249
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
252
- mentions: string[];
253
- links: string[];
254
- isPrefix: boolean;
255
- isFromMe: boolean;
256
- isTagMe: boolean;
257
- isStory: boolean;
258
- isViewOnce: boolean;
259
- isEdited: boolean;
260
- isDeleted: boolean;
261
- isPinned: boolean;
262
- isUnPinned: boolean;
263
- isChannel: boolean;
264
- isBroadcast: boolean;
265
- isEphemeral: boolean;
266
- isForwarded: boolean;
267
- citation: Record<string, boolean> | null;
268
- media: z.objectOutputType<{
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>>;
271
- }, z.ZodTypeAny, "passthrough"> | null;
238
+ message?: (...args: unknown[]) => Record<string, any>;
239
+ roomId?: string;
240
+ isGroup?: boolean;
241
+ text?: string;
242
+ chatId?: string;
243
+ channelId?: string;
244
+ receiverId?: string;
245
+ receiverName?: string;
246
+ roomName?: string;
247
+ senderId?: string;
248
+ senderName?: string;
249
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
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;
252
+ mentions?: string[];
253
+ links?: string[];
254
+ isPrefix?: boolean;
255
+ isFromMe?: boolean;
256
+ isTagMe?: boolean;
257
+ isStory?: boolean;
258
+ isViewOnce?: boolean;
259
+ isEdited?: boolean;
260
+ isDeleted?: boolean;
261
+ isPinned?: boolean;
262
+ isUnPinned?: boolean;
263
+ isChannel?: boolean;
264
+ isBroadcast?: boolean;
265
+ isEphemeral?: boolean;
266
+ isForwarded?: boolean;
267
+ citation?: Record<string, boolean>;
268
+ media?: {
269
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
270
+ stream?: (...args: unknown[]) => stream.Readable;
271
+ } & {
272
+ [k: string]: unknown;
273
+ };
272
274
  }, {
273
- message: (...args: unknown[]) => Record<string, any>;
274
- roomId: string;
275
- isGroup: boolean;
276
- text: string | null;
277
- chatId: string;
278
- channelId: string;
279
- receiverId: string;
280
- receiverName: string;
281
- roomName: string;
282
- senderId: string;
283
- senderName: string;
284
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
287
- mentions: string[];
288
- links: string[];
289
- isPrefix: boolean;
290
- isFromMe: boolean;
291
- isTagMe: boolean;
292
- isStory: boolean;
293
- isViewOnce: boolean;
294
- isEdited: boolean;
295
- isDeleted: boolean;
296
- isPinned: boolean;
297
- isUnPinned: boolean;
298
- isChannel: boolean;
299
- isBroadcast: boolean;
300
- isEphemeral: boolean;
301
- isForwarded: boolean;
302
- citation: Record<string, boolean> | null;
303
- media: z.objectInputType<{
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>>;
306
- }, z.ZodTypeAny, "passthrough"> | null;
275
+ message?: (...args: unknown[]) => Record<string, any>;
276
+ roomId?: string;
277
+ isGroup?: boolean;
278
+ text?: string;
279
+ chatId?: string;
280
+ channelId?: string;
281
+ receiverId?: string;
282
+ receiverName?: string;
283
+ roomName?: string;
284
+ senderId?: string;
285
+ senderName?: string;
286
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
287
+ 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";
288
+ timestamp?: number;
289
+ mentions?: string[];
290
+ links?: string[];
291
+ isPrefix?: boolean;
292
+ isFromMe?: boolean;
293
+ isTagMe?: boolean;
294
+ isStory?: boolean;
295
+ isViewOnce?: boolean;
296
+ isEdited?: boolean;
297
+ isDeleted?: boolean;
298
+ isPinned?: boolean;
299
+ isUnPinned?: boolean;
300
+ isChannel?: boolean;
301
+ isBroadcast?: boolean;
302
+ isEphemeral?: boolean;
303
+ isForwarded?: boolean;
304
+ citation?: Record<string, boolean>;
305
+ media?: {
306
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
307
+ stream?: (...args: unknown[]) => stream.Readable;
308
+ } & {
309
+ [k: string]: unknown;
310
+ };
307
311
  }>>;
308
312
  }, "strip", z.ZodTypeAny, {
309
- message: (...args: unknown[]) => Record<string, any>;
310
- roomId: string;
311
- isGroup: boolean;
312
- text: string | null;
313
- chatId: string;
314
- channelId: string;
315
- receiverId: string;
316
- receiverName: string;
317
- roomName: string;
318
- senderId: string;
319
- senderName: string;
320
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
323
- mentions: string[];
324
- links: string[];
325
- isPrefix: boolean;
326
- isFromMe: boolean;
327
- isTagMe: boolean;
328
- isStory: boolean;
329
- isViewOnce: boolean;
330
- isEdited: boolean;
331
- isDeleted: boolean;
332
- isPinned: boolean;
333
- isUnPinned: boolean;
334
- isChannel: boolean;
335
- isBroadcast: boolean;
336
- isEphemeral: boolean;
337
- isForwarded: boolean;
338
- citation: Record<string, boolean> | null;
339
- media: z.objectOutputType<{
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>>;
342
- }, z.ZodTypeAny, "passthrough"> | null;
343
- replied: {
344
- message: (...args: unknown[]) => Record<string, any>;
345
- roomId: string;
346
- isGroup: boolean;
347
- text: string | null;
348
- chatId: string;
349
- channelId: string;
350
- receiverId: string;
351
- receiverName: string;
352
- roomName: string;
353
- senderId: string;
354
- senderName: string;
355
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
358
- mentions: string[];
359
- links: string[];
360
- isPrefix: boolean;
361
- isFromMe: boolean;
362
- isTagMe: boolean;
363
- isStory: boolean;
364
- isViewOnce: boolean;
365
- isEdited: boolean;
366
- isDeleted: boolean;
367
- isPinned: boolean;
368
- isUnPinned: boolean;
369
- isChannel: boolean;
370
- isBroadcast: boolean;
371
- isEphemeral: boolean;
372
- isForwarded: boolean;
373
- citation: Record<string, boolean> | null;
374
- media: z.objectOutputType<{
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>>;
377
- }, z.ZodTypeAny, "passthrough"> | null;
378
- } | null;
313
+ message?: (...args: unknown[]) => Record<string, any>;
314
+ roomId?: string;
315
+ isGroup?: boolean;
316
+ text?: string;
317
+ chatId?: string;
318
+ channelId?: string;
319
+ receiverId?: string;
320
+ receiverName?: string;
321
+ roomName?: string;
322
+ senderId?: string;
323
+ senderName?: string;
324
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
325
+ 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";
326
+ timestamp?: number;
327
+ mentions?: string[];
328
+ links?: string[];
329
+ isPrefix?: boolean;
330
+ isFromMe?: boolean;
331
+ isTagMe?: boolean;
332
+ isStory?: boolean;
333
+ isViewOnce?: boolean;
334
+ isEdited?: boolean;
335
+ isDeleted?: boolean;
336
+ isPinned?: boolean;
337
+ isUnPinned?: boolean;
338
+ isChannel?: boolean;
339
+ isBroadcast?: boolean;
340
+ isEphemeral?: boolean;
341
+ isForwarded?: boolean;
342
+ citation?: Record<string, boolean>;
343
+ media?: {
344
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
345
+ stream?: (...args: unknown[]) => stream.Readable;
346
+ } & {
347
+ [k: string]: unknown;
348
+ };
349
+ replied?: {
350
+ message?: (...args: unknown[]) => Record<string, any>;
351
+ roomId?: string;
352
+ isGroup?: boolean;
353
+ text?: string;
354
+ chatId?: string;
355
+ channelId?: string;
356
+ receiverId?: string;
357
+ receiverName?: string;
358
+ roomName?: string;
359
+ senderId?: string;
360
+ senderName?: string;
361
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
362
+ 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";
363
+ timestamp?: number;
364
+ mentions?: string[];
365
+ links?: string[];
366
+ isPrefix?: boolean;
367
+ isFromMe?: boolean;
368
+ isTagMe?: boolean;
369
+ isStory?: boolean;
370
+ isViewOnce?: boolean;
371
+ isEdited?: boolean;
372
+ isDeleted?: boolean;
373
+ isPinned?: boolean;
374
+ isUnPinned?: boolean;
375
+ isChannel?: boolean;
376
+ isBroadcast?: boolean;
377
+ isEphemeral?: boolean;
378
+ isForwarded?: boolean;
379
+ citation?: Record<string, boolean>;
380
+ media?: {
381
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
382
+ stream?: (...args: unknown[]) => stream.Readable;
383
+ } & {
384
+ [k: string]: unknown;
385
+ };
386
+ };
379
387
  }, {
380
- message: (...args: unknown[]) => Record<string, any>;
381
- roomId: string;
382
- isGroup: boolean;
383
- text: string | null;
384
- chatId: string;
385
- channelId: string;
386
- receiverId: string;
387
- receiverName: string;
388
- roomName: string;
389
- senderId: string;
390
- senderName: string;
391
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
394
- mentions: string[];
395
- links: string[];
396
- isPrefix: boolean;
397
- isFromMe: boolean;
398
- isTagMe: boolean;
399
- isStory: boolean;
400
- isViewOnce: boolean;
401
- isEdited: boolean;
402
- isDeleted: boolean;
403
- isPinned: boolean;
404
- isUnPinned: boolean;
405
- isChannel: boolean;
406
- isBroadcast: boolean;
407
- isEphemeral: boolean;
408
- isForwarded: boolean;
409
- citation: Record<string, boolean> | null;
410
- media: z.objectInputType<{
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>>;
413
- }, z.ZodTypeAny, "passthrough"> | null;
414
- replied: {
415
- message: (...args: unknown[]) => Record<string, any>;
416
- roomId: string;
417
- isGroup: boolean;
418
- text: string | null;
419
- chatId: string;
420
- channelId: string;
421
- receiverId: string;
422
- receiverName: string;
423
- roomName: string;
424
- senderId: string;
425
- senderName: string;
426
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
429
- mentions: string[];
430
- links: string[];
431
- isPrefix: boolean;
432
- isFromMe: boolean;
433
- isTagMe: boolean;
434
- isStory: boolean;
435
- isViewOnce: boolean;
436
- isEdited: boolean;
437
- isDeleted: boolean;
438
- isPinned: boolean;
439
- isUnPinned: boolean;
440
- isChannel: boolean;
441
- isBroadcast: boolean;
442
- isEphemeral: boolean;
443
- isForwarded: boolean;
444
- citation: Record<string, boolean> | null;
445
- media: z.objectInputType<{
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>>;
448
- }, z.ZodTypeAny, "passthrough"> | null;
449
- } | null;
388
+ message?: (...args: unknown[]) => Record<string, any>;
389
+ roomId?: string;
390
+ isGroup?: boolean;
391
+ text?: string;
392
+ chatId?: string;
393
+ channelId?: string;
394
+ receiverId?: string;
395
+ receiverName?: string;
396
+ roomName?: string;
397
+ senderId?: string;
398
+ senderName?: string;
399
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
400
+ 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";
401
+ timestamp?: number;
402
+ mentions?: string[];
403
+ links?: string[];
404
+ isPrefix?: boolean;
405
+ isFromMe?: boolean;
406
+ isTagMe?: boolean;
407
+ isStory?: boolean;
408
+ isViewOnce?: boolean;
409
+ isEdited?: boolean;
410
+ isDeleted?: boolean;
411
+ isPinned?: boolean;
412
+ isUnPinned?: boolean;
413
+ isChannel?: boolean;
414
+ isBroadcast?: boolean;
415
+ isEphemeral?: boolean;
416
+ isForwarded?: boolean;
417
+ citation?: Record<string, boolean>;
418
+ media?: {
419
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
420
+ stream?: (...args: unknown[]) => stream.Readable;
421
+ } & {
422
+ [k: string]: unknown;
423
+ };
424
+ replied?: {
425
+ message?: (...args: unknown[]) => Record<string, any>;
426
+ roomId?: string;
427
+ isGroup?: boolean;
428
+ text?: string;
429
+ chatId?: string;
430
+ channelId?: string;
431
+ receiverId?: string;
432
+ receiverName?: string;
433
+ roomName?: string;
434
+ senderId?: string;
435
+ senderName?: string;
436
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
437
+ 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";
438
+ timestamp?: number;
439
+ mentions?: string[];
440
+ links?: string[];
441
+ isPrefix?: boolean;
442
+ isFromMe?: boolean;
443
+ isTagMe?: boolean;
444
+ isStory?: boolean;
445
+ isViewOnce?: boolean;
446
+ isEdited?: boolean;
447
+ isDeleted?: boolean;
448
+ isPinned?: boolean;
449
+ isUnPinned?: boolean;
450
+ isChannel?: boolean;
451
+ isBroadcast?: boolean;
452
+ isEphemeral?: boolean;
453
+ isForwarded?: boolean;
454
+ citation?: Record<string, boolean>;
455
+ media?: {
456
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
457
+ stream?: (...args: unknown[]) => stream.Readable;
458
+ } & {
459
+ [k: string]: unknown;
460
+ };
461
+ };
450
462
  }>;
451
463
  declare const EventCallType: z.ZodObject<{
452
464
  callId: z.ZodString;
@@ -458,23 +470,23 @@ declare const EventCallType: z.ZodObject<{
458
470
  isVideo: z.ZodBoolean;
459
471
  isGroup: z.ZodBoolean;
460
472
  }, "strip", z.ZodTypeAny, {
461
- status: "accept" | "offer" | "reject" | "ringing" | "terminate" | "timeout";
462
- callId: string;
463
- roomId: string;
464
- callerId: string;
465
- date: Date;
466
- offline: boolean;
467
- isVideo: boolean;
468
- isGroup: boolean;
473
+ status?: "accept" | "offer" | "reject" | "ringing" | "terminate" | "timeout";
474
+ callId?: string;
475
+ roomId?: string;
476
+ callerId?: string;
477
+ date?: Date;
478
+ offline?: boolean;
479
+ isVideo?: boolean;
480
+ isGroup?: boolean;
469
481
  }, {
470
- status: "accept" | "offer" | "reject" | "ringing" | "terminate" | "timeout";
471
- callId: string;
472
- roomId: string;
473
- callerId: string;
474
- date: Date;
475
- offline: boolean;
476
- isVideo: boolean;
477
- isGroup: boolean;
482
+ status?: "accept" | "offer" | "reject" | "ringing" | "terminate" | "timeout";
483
+ callId?: string;
484
+ roomId?: string;
485
+ callerId?: string;
486
+ date?: Date;
487
+ offline?: boolean;
488
+ isVideo?: boolean;
489
+ isGroup?: boolean;
478
490
  }>;
479
491
  declare const EventEnumType: z.ZodEnum<["connection", "messages", "calls"]>;
480
492
  type EventEnumType = z.infer<typeof EventEnumType>;
@@ -488,53 +500,53 @@ declare const TextWorkerBaseType: z.ZodUnion<[z.ZodString, z.ZodObject<{
488
500
  image: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
489
501
  text: z.ZodOptional<z.ZodString>;
490
502
  }, "strip", z.ZodTypeAny, {
491
- image: string | Buffer<ArrayBufferLike> | Readable;
492
- text?: string | undefined;
503
+ text?: string;
504
+ image?: string | Buffer<ArrayBufferLike> | Readable;
493
505
  }, {
494
- image: string | Buffer<ArrayBufferLike> | Readable;
495
- text?: string | undefined;
506
+ text?: string;
507
+ image?: string | Buffer<ArrayBufferLike> | Readable;
496
508
  }>, z.ZodObject<{
497
509
  video: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
498
510
  text: z.ZodOptional<z.ZodString>;
499
511
  }, "strip", z.ZodTypeAny, {
500
- video: string | Buffer<ArrayBufferLike> | Readable;
501
- text?: string | undefined;
512
+ text?: string;
513
+ video?: string | Buffer<ArrayBufferLike> | Readable;
502
514
  }, {
503
- video: string | Buffer<ArrayBufferLike> | Readable;
504
- text?: string | undefined;
515
+ text?: string;
516
+ video?: string | Buffer<ArrayBufferLike> | Readable;
505
517
  }>, z.ZodObject<{
506
518
  videoNote: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
507
519
  }, "strip", z.ZodTypeAny, {
508
- videoNote: string | Buffer<ArrayBufferLike> | Readable;
520
+ videoNote?: string | Buffer<ArrayBufferLike> | Readable;
509
521
  }, {
510
- videoNote: string | Buffer<ArrayBufferLike> | Readable;
522
+ videoNote?: string | Buffer<ArrayBufferLike> | Readable;
511
523
  }>, z.ZodObject<{
512
524
  gif: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
513
525
  text: z.ZodOptional<z.ZodString>;
514
526
  }, "strip", z.ZodTypeAny, {
515
- gif: string | Buffer<ArrayBufferLike> | Readable;
516
- text?: string | undefined;
527
+ text?: string;
528
+ gif?: string | Buffer<ArrayBufferLike> | Readable;
517
529
  }, {
518
- gif: string | Buffer<ArrayBufferLike> | Readable;
519
- text?: string | undefined;
530
+ text?: string;
531
+ gif?: string | Buffer<ArrayBufferLike> | Readable;
520
532
  }>, z.ZodObject<{
521
533
  audio: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
522
534
  }, "strip", z.ZodTypeAny, {
523
- audio: string | Buffer<ArrayBufferLike> | Readable;
535
+ audio?: string | Buffer<ArrayBufferLike> | Readable;
524
536
  }, {
525
- audio: string | Buffer<ArrayBufferLike> | Readable;
537
+ audio?: string | Buffer<ArrayBufferLike> | Readable;
526
538
  }>, z.ZodObject<{
527
539
  audioNote: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
528
540
  }, "strip", z.ZodTypeAny, {
529
- audioNote: string | Buffer<ArrayBufferLike> | Readable;
541
+ audioNote?: string | Buffer<ArrayBufferLike> | Readable;
530
542
  }, {
531
- audioNote: string | Buffer<ArrayBufferLike> | Readable;
543
+ audioNote?: string | Buffer<ArrayBufferLike> | Readable;
532
544
  }>, z.ZodObject<{
533
545
  sticker: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
534
546
  }, "strip", z.ZodTypeAny, {
535
- sticker: string | Buffer<ArrayBufferLike> | Readable;
547
+ sticker?: string | Buffer<ArrayBufferLike> | Readable;
536
548
  }, {
537
- sticker: string | Buffer<ArrayBufferLike> | Readable;
549
+ sticker?: string | Buffer<ArrayBufferLike> | Readable;
538
550
  }>]>;
539
551
  declare const TextWorkerOptionsType: z.ZodObject<{
540
552
  roomId: z.ZodString;
@@ -543,17 +555,17 @@ declare const TextWorkerOptionsType: z.ZodObject<{
543
555
  verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
544
556
  quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
545
557
  }, "strip", z.ZodTypeAny, {
546
- roomId: string;
547
- asForwarded?: boolean | undefined;
548
- asViewOnce?: boolean | undefined;
549
- verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
550
- quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
558
+ roomId?: string;
559
+ asForwarded?: boolean;
560
+ asViewOnce?: boolean;
561
+ verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok";
562
+ quoted?: (...args: unknown[]) => Record<string, any>;
551
563
  }, {
552
- roomId: string;
553
- asForwarded?: boolean | undefined;
554
- asViewOnce?: boolean | undefined;
555
- verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
556
- quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
564
+ roomId?: string;
565
+ asForwarded?: boolean;
566
+ asViewOnce?: boolean;
567
+ verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok";
568
+ quoted?: (...args: unknown[]) => Record<string, any>;
557
569
  }>;
558
570
  declare const LocationWorkerOptionsType: z.ZodObject<{
559
571
  roomId: z.ZodString;
@@ -562,17 +574,17 @@ declare const LocationWorkerOptionsType: z.ZodObject<{
562
574
  verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
563
575
  quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
564
576
  }, "strip", z.ZodTypeAny, {
565
- roomId: string;
566
- asForwarded?: boolean | undefined;
567
- asViewOnce?: boolean | undefined;
568
- verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
569
- quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
577
+ roomId?: string;
578
+ asForwarded?: boolean;
579
+ asViewOnce?: boolean;
580
+ verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok";
581
+ quoted?: (...args: unknown[]) => Record<string, any>;
570
582
  }, {
571
- roomId: string;
572
- asForwarded?: boolean | undefined;
573
- asViewOnce?: boolean | undefined;
574
- verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
575
- quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
583
+ roomId?: string;
584
+ asForwarded?: boolean;
585
+ asViewOnce?: boolean;
586
+ verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok";
587
+ quoted?: (...args: unknown[]) => Record<string, any>;
576
588
  }>;
577
589
  declare const LocationWorkerBaseType: z.ZodObject<{
578
590
  latitude: z.ZodNumber;
@@ -580,15 +592,15 @@ declare const LocationWorkerBaseType: z.ZodObject<{
580
592
  title: z.ZodOptional<z.ZodString>;
581
593
  footer: z.ZodOptional<z.ZodString>;
582
594
  }, "strip", z.ZodTypeAny, {
583
- latitude: number;
584
- longitude: number;
585
- title?: string | undefined;
586
- footer?: string | undefined;
595
+ latitude?: number;
596
+ longitude?: number;
597
+ title?: string;
598
+ footer?: string;
587
599
  }, {
588
- latitude: number;
589
- longitude: number;
590
- title?: string | undefined;
591
- footer?: string | undefined;
600
+ latitude?: number;
601
+ longitude?: number;
602
+ title?: string;
603
+ footer?: string;
592
604
  }>;
593
605
  declare const ContactWorkerOptionsType: z.ZodObject<{
594
606
  roomId: z.ZodString;
@@ -597,17 +609,17 @@ declare const ContactWorkerOptionsType: z.ZodObject<{
597
609
  verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
598
610
  quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
599
611
  }, "strip", z.ZodTypeAny, {
600
- roomId: string;
601
- asForwarded?: boolean | undefined;
602
- asViewOnce?: boolean | undefined;
603
- verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
604
- quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
612
+ roomId?: string;
613
+ asForwarded?: boolean;
614
+ asViewOnce?: boolean;
615
+ verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok";
616
+ quoted?: (...args: unknown[]) => Record<string, any>;
605
617
  }, {
606
- roomId: string;
607
- asForwarded?: boolean | undefined;
608
- asViewOnce?: boolean | undefined;
609
- verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
610
- quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
618
+ roomId?: string;
619
+ asForwarded?: boolean;
620
+ asViewOnce?: boolean;
621
+ verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok";
622
+ quoted?: (...args: unknown[]) => Record<string, any>;
611
623
  }>;
612
624
  declare const ContactWorkerBaseType: z.ZodObject<{
613
625
  fullname: z.ZodString;
@@ -623,56 +635,56 @@ declare const ContactWorkerBaseType: z.ZodObject<{
623
635
  workAddress: z.ZodOptional<z.ZodString>;
624
636
  avatar: z.ZodOptional<z.ZodString>;
625
637
  }, "strip", z.ZodTypeAny, {
626
- fullname: string;
627
- whatsAppNumber: number;
628
- nickname?: string | undefined;
629
- organization?: string | undefined;
630
- role?: string | undefined;
631
- email?: string | undefined;
632
- callNumber?: number | undefined;
633
- voiceNumber?: number | undefined;
634
- website?: string | undefined;
635
- homeAddress?: string | undefined;
636
- workAddress?: string | undefined;
637
- avatar?: string | undefined;
638
+ fullname?: string;
639
+ nickname?: string;
640
+ organization?: string;
641
+ role?: string;
642
+ email?: string;
643
+ whatsAppNumber?: number;
644
+ callNumber?: number;
645
+ voiceNumber?: number;
646
+ website?: string;
647
+ homeAddress?: string;
648
+ workAddress?: string;
649
+ avatar?: string;
638
650
  }, {
639
- fullname: string;
640
- whatsAppNumber: number;
641
- nickname?: string | undefined;
642
- organization?: string | undefined;
643
- role?: string | undefined;
644
- email?: string | undefined;
645
- callNumber?: number | undefined;
646
- voiceNumber?: number | undefined;
647
- website?: string | undefined;
648
- homeAddress?: string | undefined;
649
- workAddress?: string | undefined;
650
- avatar?: string | undefined;
651
+ fullname?: string;
652
+ nickname?: string;
653
+ organization?: string;
654
+ role?: string;
655
+ email?: string;
656
+ whatsAppNumber?: number;
657
+ callNumber?: number;
658
+ voiceNumber?: number;
659
+ website?: string;
660
+ homeAddress?: string;
661
+ workAddress?: string;
662
+ avatar?: string;
651
663
  }>;
652
664
  declare const ReactionWorkerOptionsType: z.ZodObject<{
653
665
  message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
654
666
  }, "strip", z.ZodTypeAny, {
655
- message: (...args: unknown[]) => Record<string, any>;
667
+ message?: (...args: unknown[]) => Record<string, any>;
656
668
  }, {
657
- message: (...args: unknown[]) => Record<string, any>;
669
+ message?: (...args: unknown[]) => Record<string, any>;
658
670
  }>;
659
671
  declare const ReactionWorkerBaseType: z.ZodString;
660
672
  declare const PinWorkerOptionsType: z.ZodObject<{
661
673
  message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
662
674
  }, "strip", z.ZodTypeAny, {
663
- message: (...args: unknown[]) => Record<string, any>;
675
+ message?: (...args: unknown[]) => Record<string, any>;
664
676
  }, {
665
- message: (...args: unknown[]) => Record<string, any>;
677
+ message?: (...args: unknown[]) => Record<string, any>;
666
678
  }>;
667
679
  declare const PinWorkerBaseType: z.ZodObject<{
668
680
  action: z.ZodEnum<["pin", "unpin"]>;
669
681
  expired: z.ZodEnum<["24h", "7d", "30d"]>;
670
682
  }, "strip", z.ZodTypeAny, {
671
- action: "pin" | "unpin";
672
- expired: "24h" | "7d" | "30d";
683
+ action?: "pin" | "unpin";
684
+ expired?: "24h" | "7d" | "30d";
673
685
  }, {
674
- action: "pin" | "unpin";
675
- expired: "24h" | "7d" | "30d";
686
+ action?: "pin" | "unpin";
687
+ expired?: "24h" | "7d" | "30d";
676
688
  }>;
677
689
  declare const PollWorkerOptionsType: z.ZodObject<Pick<{
678
690
  roomId: z.ZodString;
@@ -681,47 +693,47 @@ declare const PollWorkerOptionsType: z.ZodObject<Pick<{
681
693
  verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
682
694
  quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
683
695
  }, "roomId">, "strip", z.ZodTypeAny, {
684
- roomId: string;
696
+ roomId?: string;
685
697
  }, {
686
- roomId: string;
698
+ roomId?: string;
687
699
  }>;
688
700
  declare const PollWorkerBaseType: z.ZodObject<{
689
701
  name: z.ZodString;
690
702
  answers: z.ZodArray<z.ZodString, "many">;
691
703
  multipleAnswers: z.ZodOptional<z.ZodBoolean>;
692
704
  }, "strip", z.ZodTypeAny, {
693
- name: string;
694
- answers: string[];
695
- multipleAnswers?: boolean | undefined;
705
+ name?: string;
706
+ answers?: string[];
707
+ multipleAnswers?: boolean;
696
708
  }, {
697
- name: string;
698
- answers: string[];
699
- multipleAnswers?: boolean | undefined;
709
+ name?: string;
710
+ answers?: string[];
711
+ multipleAnswers?: boolean;
700
712
  }>;
701
713
  declare const EditWorkerOptionsType: z.ZodObject<{
702
714
  message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
703
715
  }, "strip", z.ZodTypeAny, {
704
- message: (...args: unknown[]) => Record<string, any>;
716
+ message?: (...args: unknown[]) => Record<string, any>;
705
717
  }, {
706
- message: (...args: unknown[]) => Record<string, any>;
718
+ message?: (...args: unknown[]) => Record<string, any>;
707
719
  }>;
708
720
  declare const EditWorkerBaseType: z.ZodString;
709
721
  declare const DeleteWorkerBaseType: z.ZodObject<{
710
722
  message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
711
723
  }, "strip", z.ZodTypeAny, {
712
- message: (...args: unknown[]) => Record<string, any>;
724
+ message?: (...args: unknown[]) => Record<string, any>;
713
725
  }, {
714
- message: (...args: unknown[]) => Record<string, any>;
726
+ message?: (...args: unknown[]) => Record<string, any>;
715
727
  }>;
716
728
  declare const RejectCallWorkerBaseType: z.ZodObject<{
717
729
  callId: z.ZodString;
718
730
  callerId: z.ZodString;
719
731
  }, "strip", z.ZodTypeAny, {
720
- callId: string;
721
- callerId: string;
732
+ callId?: string;
733
+ callerId?: string;
722
734
  }, {
723
- callId: string;
724
- callerId: string;
735
+ callId?: string;
736
+ callerId?: string;
725
737
  }>;
726
738
  declare const MuteWorkerOptionsType: z.ZodObject<Pick<{
727
739
  roomId: z.ZodString;
@@ -730,16 +742,16 @@ declare const MuteWorkerOptionsType: z.ZodObject<Pick<{
730
742
  verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
731
743
  quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
732
744
  }, "roomId">, "strip", z.ZodTypeAny, {
733
- roomId: string;
745
+ roomId?: string;
734
746
  }, {
735
- roomId: string;
747
+ roomId?: string;
736
748
  }>;
737
749
  declare const MuteWorkerBaseType: z.ZodObject<{
738
750
  expired: z.ZodEnum<["remove", "8h", "7d"]>;
739
751
  }, "strip", z.ZodTypeAny, {
740
- expired: "7d" | "remove" | "8h";
752
+ expired?: "7d" | "remove" | "8h";
741
753
  }, {
742
- expired: "7d" | "remove" | "8h";
754
+ expired?: "7d" | "remove" | "8h";
743
755
  }>;
744
756
  declare const ProfileWorkerBaseType: z.ZodString;
745
757
  declare const ProfileWorkerBaseOutputType: z.ZodObject<{
@@ -759,11 +771,11 @@ declare const ProfileWorkerBaseOutputType: z.ZodObject<{
759
771
  type: z.ZodLiteral<"user">;
760
772
  id: z.ZodString;
761
773
  }, "strip", z.ZodTypeAny, {
762
- id: string;
763
- type: "user";
774
+ id?: string;
775
+ type?: "user";
764
776
  }, {
765
- id: string;
766
- type: "user";
777
+ id?: string;
778
+ type?: "user";
767
779
  }>>;
768
780
  roomCreatedAt: z.ZodOptional<z.ZodNumber>;
769
781
  nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
@@ -773,62 +785,62 @@ declare const ProfileWorkerBaseOutputType: z.ZodObject<{
773
785
  type: z.ZodEnum<["user", "admin", "superadmin"]>;
774
786
  id: z.ZodString;
775
787
  }, "strip", z.ZodTypeAny, {
776
- id: string;
777
- type: "user" | "admin" | "superadmin";
788
+ id?: string;
789
+ type?: "user" | "admin" | "superadmin";
778
790
  }, {
779
- id: string;
780
- type: "user" | "admin" | "superadmin";
791
+ id?: string;
792
+ type?: "user" | "admin" | "superadmin";
781
793
  }>, "many">>;
782
794
  }, "strip", z.ZodTypeAny, {
783
- id: string;
784
- type: "user" | "group";
785
- name: string;
786
- owner: {
787
- id: string;
788
- type: "user";
789
- } | null;
790
- avatar: string;
791
- bio: string;
792
- isCommunity?: boolean | undefined;
793
- isCommunityAnnounce?: boolean | undefined;
794
- ephemeralDuration?: number | undefined;
795
- isRestrict?: boolean | undefined;
796
- isAnnounce?: boolean | undefined;
797
- isJoinApprovalMode?: boolean | undefined;
798
- isMemberAddMode?: boolean | undefined;
799
- roomCreatedAt?: number | undefined;
800
- nameUpdatedAt?: number | undefined;
801
- bioUpdatedAt?: number | undefined;
802
- membersLength?: number | undefined;
795
+ id?: string;
796
+ type?: "user" | "group";
797
+ owner?: {
798
+ id?: string;
799
+ type?: "user";
800
+ };
801
+ isCommunity?: boolean;
802
+ isCommunityAnnounce?: boolean;
803
+ ephemeralDuration?: number;
804
+ avatar?: string;
805
+ name?: string;
806
+ bio?: string;
807
+ isRestrict?: boolean;
808
+ isAnnounce?: boolean;
809
+ isJoinApprovalMode?: boolean;
810
+ isMemberAddMode?: boolean;
811
+ roomCreatedAt?: number;
812
+ nameUpdatedAt?: number;
813
+ bioUpdatedAt?: number;
814
+ membersLength?: number;
803
815
  members?: {
804
- id: string;
805
- type: "user" | "admin" | "superadmin";
806
- }[] | undefined;
816
+ id?: string;
817
+ type?: "user" | "admin" | "superadmin";
818
+ }[];
807
819
  }, {
808
- id: string;
809
- type: "user" | "group";
810
- name: string;
811
- owner: {
812
- id: string;
813
- type: "user";
814
- } | null;
815
- avatar: string;
816
- bio: string;
817
- isCommunity?: boolean | undefined;
818
- isCommunityAnnounce?: boolean | undefined;
819
- ephemeralDuration?: number | undefined;
820
- isRestrict?: boolean | undefined;
821
- isAnnounce?: boolean | undefined;
822
- isJoinApprovalMode?: boolean | undefined;
823
- isMemberAddMode?: boolean | undefined;
824
- roomCreatedAt?: number | undefined;
825
- nameUpdatedAt?: number | undefined;
826
- bioUpdatedAt?: number | undefined;
827
- membersLength?: number | undefined;
820
+ id?: string;
821
+ type?: "user" | "group";
822
+ owner?: {
823
+ id?: string;
824
+ type?: "user";
825
+ };
826
+ isCommunity?: boolean;
827
+ isCommunityAnnounce?: boolean;
828
+ ephemeralDuration?: number;
829
+ avatar?: string;
830
+ name?: string;
831
+ bio?: string;
832
+ isRestrict?: boolean;
833
+ isAnnounce?: boolean;
834
+ isJoinApprovalMode?: boolean;
835
+ isMemberAddMode?: boolean;
836
+ roomCreatedAt?: number;
837
+ nameUpdatedAt?: number;
838
+ bioUpdatedAt?: number;
839
+ membersLength?: number;
828
840
  members?: {
829
- id: string;
830
- type: "user" | "admin" | "superadmin";
831
- }[] | undefined;
841
+ id?: string;
842
+ type?: "user" | "admin" | "superadmin";
843
+ }[];
832
844
  }>;
833
845
  declare const PresenceWorkerOptionsType: z.ZodObject<Pick<{
834
846
  roomId: z.ZodString;
@@ -837,9 +849,9 @@ declare const PresenceWorkerOptionsType: z.ZodObject<Pick<{
837
849
  verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
838
850
  quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
839
851
  }, "roomId">, "strip", z.ZodTypeAny, {
840
- roomId: string;
852
+ roomId?: string;
841
853
  }, {
842
- roomId: string;
854
+ roomId?: string;
843
855
  }>;
844
856
  declare const PresenceWorkerBaseType: z.ZodEnum<["typing", "recording", "online", "offline", "paused"]>;
845
857
 
@@ -853,585 +865,617 @@ declare class Worker {
853
865
  });
854
866
  private sendMessage;
855
867
  text(text: z.infer<typeof TextWorkerBaseType>, options: z.infer<typeof TextWorkerOptionsType>): Promise<{
856
- message: (...args: unknown[]) => Record<string, any>;
857
- roomId: string;
858
- isGroup: boolean;
859
- text: string | null;
860
- chatId: string;
861
- channelId: string;
862
- receiverId: string;
863
- receiverName: string;
864
- roomName: string;
865
- senderId: string;
866
- senderName: string;
867
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
870
- mentions: string[];
871
- links: string[];
872
- isPrefix: boolean;
873
- isFromMe: boolean;
874
- isTagMe: boolean;
875
- isStory: boolean;
876
- isViewOnce: boolean;
877
- isEdited: boolean;
878
- isDeleted: boolean;
879
- isPinned: boolean;
880
- isUnPinned: boolean;
881
- isChannel: boolean;
882
- isBroadcast: boolean;
883
- isEphemeral: boolean;
884
- isForwarded: boolean;
885
- citation: Record<string, boolean> | null;
886
- media: z.objectOutputType<{
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>>;
889
- }, z.ZodTypeAny, "passthrough"> | null;
890
- replied: {
891
- message: (...args: unknown[]) => Record<string, any>;
892
- roomId: string;
893
- isGroup: boolean;
894
- text: string | null;
895
- chatId: string;
896
- channelId: string;
897
- receiverId: string;
898
- receiverName: string;
899
- roomName: string;
900
- senderId: string;
901
- senderName: string;
902
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
905
- mentions: string[];
906
- links: string[];
907
- isPrefix: boolean;
908
- isFromMe: boolean;
909
- isTagMe: boolean;
910
- isStory: boolean;
911
- isViewOnce: boolean;
912
- isEdited: boolean;
913
- isDeleted: boolean;
914
- isPinned: boolean;
915
- isUnPinned: boolean;
916
- isChannel: boolean;
917
- isBroadcast: boolean;
918
- isEphemeral: boolean;
919
- isForwarded: boolean;
920
- citation: Record<string, boolean> | null;
921
- media: z.objectOutputType<{
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>>;
924
- }, z.ZodTypeAny, "passthrough"> | null;
925
- } | null;
926
- } | null | undefined>;
868
+ message?: (...args: unknown[]) => Record<string, any>;
869
+ roomId?: string;
870
+ isGroup?: boolean;
871
+ text?: string;
872
+ chatId?: string;
873
+ channelId?: string;
874
+ receiverId?: string;
875
+ receiverName?: string;
876
+ roomName?: string;
877
+ senderId?: string;
878
+ senderName?: string;
879
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
880
+ 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";
881
+ timestamp?: number;
882
+ mentions?: string[];
883
+ links?: string[];
884
+ isPrefix?: boolean;
885
+ isFromMe?: boolean;
886
+ isTagMe?: boolean;
887
+ isStory?: boolean;
888
+ isViewOnce?: boolean;
889
+ isEdited?: boolean;
890
+ isDeleted?: boolean;
891
+ isPinned?: boolean;
892
+ isUnPinned?: boolean;
893
+ isChannel?: boolean;
894
+ isBroadcast?: boolean;
895
+ isEphemeral?: boolean;
896
+ isForwarded?: boolean;
897
+ citation?: Record<string, boolean>;
898
+ media?: {
899
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
900
+ stream?: (...args: unknown[]) => stream.Readable;
901
+ } & {
902
+ [k: string]: unknown;
903
+ };
904
+ replied?: {
905
+ message?: (...args: unknown[]) => Record<string, any>;
906
+ roomId?: string;
907
+ isGroup?: boolean;
908
+ text?: string;
909
+ chatId?: string;
910
+ channelId?: string;
911
+ receiverId?: string;
912
+ receiverName?: string;
913
+ roomName?: string;
914
+ senderId?: string;
915
+ senderName?: string;
916
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
917
+ 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";
918
+ timestamp?: number;
919
+ mentions?: string[];
920
+ links?: string[];
921
+ isPrefix?: boolean;
922
+ isFromMe?: boolean;
923
+ isTagMe?: boolean;
924
+ isStory?: boolean;
925
+ isViewOnce?: boolean;
926
+ isEdited?: boolean;
927
+ isDeleted?: boolean;
928
+ isPinned?: boolean;
929
+ isUnPinned?: boolean;
930
+ isChannel?: boolean;
931
+ isBroadcast?: boolean;
932
+ isEphemeral?: boolean;
933
+ isForwarded?: boolean;
934
+ citation?: Record<string, boolean>;
935
+ media?: {
936
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
937
+ stream?: (...args: unknown[]) => stream.Readable;
938
+ } & {
939
+ [k: string]: unknown;
940
+ };
941
+ };
942
+ }>;
927
943
  location(loc: z.infer<typeof LocationWorkerBaseType>, options: z.infer<typeof LocationWorkerOptionsType>): Promise<{
928
- message: (...args: unknown[]) => Record<string, any>;
929
- roomId: string;
930
- isGroup: boolean;
931
- text: string | null;
932
- chatId: string;
933
- channelId: string;
934
- receiverId: string;
935
- receiverName: string;
936
- roomName: string;
937
- senderId: string;
938
- senderName: string;
939
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
942
- mentions: string[];
943
- links: string[];
944
- isPrefix: boolean;
945
- isFromMe: boolean;
946
- isTagMe: boolean;
947
- isStory: boolean;
948
- isViewOnce: boolean;
949
- isEdited: boolean;
950
- isDeleted: boolean;
951
- isPinned: boolean;
952
- isUnPinned: boolean;
953
- isChannel: boolean;
954
- isBroadcast: boolean;
955
- isEphemeral: boolean;
956
- isForwarded: boolean;
957
- citation: Record<string, boolean> | null;
958
- media: z.objectOutputType<{
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>>;
961
- }, z.ZodTypeAny, "passthrough"> | null;
962
- replied: {
963
- message: (...args: unknown[]) => Record<string, any>;
964
- roomId: string;
965
- isGroup: boolean;
966
- text: string | null;
967
- chatId: string;
968
- channelId: string;
969
- receiverId: string;
970
- receiverName: string;
971
- roomName: string;
972
- senderId: string;
973
- senderName: string;
974
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
977
- mentions: string[];
978
- links: string[];
979
- isPrefix: boolean;
980
- isFromMe: boolean;
981
- isTagMe: boolean;
982
- isStory: boolean;
983
- isViewOnce: boolean;
984
- isEdited: boolean;
985
- isDeleted: boolean;
986
- isPinned: boolean;
987
- isUnPinned: boolean;
988
- isChannel: boolean;
989
- isBroadcast: boolean;
990
- isEphemeral: boolean;
991
- isForwarded: boolean;
992
- citation: Record<string, boolean> | null;
993
- media: z.objectOutputType<{
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>>;
996
- }, z.ZodTypeAny, "passthrough"> | null;
997
- } | null;
998
- } | null>;
944
+ message?: (...args: unknown[]) => Record<string, any>;
945
+ roomId?: string;
946
+ isGroup?: boolean;
947
+ text?: string;
948
+ chatId?: string;
949
+ channelId?: string;
950
+ receiverId?: string;
951
+ receiverName?: string;
952
+ roomName?: string;
953
+ senderId?: string;
954
+ senderName?: string;
955
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
956
+ 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";
957
+ timestamp?: number;
958
+ mentions?: string[];
959
+ links?: string[];
960
+ isPrefix?: boolean;
961
+ isFromMe?: boolean;
962
+ isTagMe?: boolean;
963
+ isStory?: boolean;
964
+ isViewOnce?: boolean;
965
+ isEdited?: boolean;
966
+ isDeleted?: boolean;
967
+ isPinned?: boolean;
968
+ isUnPinned?: boolean;
969
+ isChannel?: boolean;
970
+ isBroadcast?: boolean;
971
+ isEphemeral?: boolean;
972
+ isForwarded?: boolean;
973
+ citation?: Record<string, boolean>;
974
+ media?: {
975
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
976
+ stream?: (...args: unknown[]) => stream.Readable;
977
+ } & {
978
+ [k: string]: unknown;
979
+ };
980
+ replied?: {
981
+ message?: (...args: unknown[]) => Record<string, any>;
982
+ roomId?: string;
983
+ isGroup?: boolean;
984
+ text?: string;
985
+ chatId?: string;
986
+ channelId?: string;
987
+ receiverId?: string;
988
+ receiverName?: string;
989
+ roomName?: string;
990
+ senderId?: string;
991
+ senderName?: string;
992
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
993
+ 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";
994
+ timestamp?: number;
995
+ mentions?: string[];
996
+ links?: string[];
997
+ isPrefix?: boolean;
998
+ isFromMe?: boolean;
999
+ isTagMe?: boolean;
1000
+ isStory?: boolean;
1001
+ isViewOnce?: boolean;
1002
+ isEdited?: boolean;
1003
+ isDeleted?: boolean;
1004
+ isPinned?: boolean;
1005
+ isUnPinned?: boolean;
1006
+ isChannel?: boolean;
1007
+ isBroadcast?: boolean;
1008
+ isEphemeral?: boolean;
1009
+ isForwarded?: boolean;
1010
+ citation?: Record<string, boolean>;
1011
+ media?: {
1012
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
1013
+ stream?: (...args: unknown[]) => stream.Readable;
1014
+ } & {
1015
+ [k: string]: unknown;
1016
+ };
1017
+ };
1018
+ }>;
999
1019
  contact(vcard: z.infer<typeof ContactWorkerBaseType>, options: z.infer<typeof ContactWorkerOptionsType>): Promise<{
1000
- message: (...args: unknown[]) => Record<string, any>;
1001
- roomId: string;
1002
- isGroup: boolean;
1003
- text: string | null;
1004
- chatId: string;
1005
- channelId: string;
1006
- receiverId: string;
1007
- receiverName: string;
1008
- roomName: string;
1009
- senderId: string;
1010
- senderName: string;
1011
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
1014
- mentions: string[];
1015
- links: string[];
1016
- isPrefix: boolean;
1017
- isFromMe: boolean;
1018
- isTagMe: boolean;
1019
- isStory: boolean;
1020
- isViewOnce: boolean;
1021
- isEdited: boolean;
1022
- isDeleted: boolean;
1023
- isPinned: boolean;
1024
- isUnPinned: boolean;
1025
- isChannel: boolean;
1026
- isBroadcast: boolean;
1027
- isEphemeral: boolean;
1028
- isForwarded: boolean;
1029
- citation: Record<string, boolean> | null;
1030
- media: z.objectOutputType<{
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>>;
1033
- }, z.ZodTypeAny, "passthrough"> | null;
1034
- replied: {
1035
- message: (...args: unknown[]) => Record<string, any>;
1036
- roomId: string;
1037
- isGroup: boolean;
1038
- text: string | null;
1039
- chatId: string;
1040
- channelId: string;
1041
- receiverId: string;
1042
- receiverName: string;
1043
- roomName: string;
1044
- senderId: string;
1045
- senderName: string;
1046
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
1049
- mentions: string[];
1050
- links: string[];
1051
- isPrefix: boolean;
1052
- isFromMe: boolean;
1053
- isTagMe: boolean;
1054
- isStory: boolean;
1055
- isViewOnce: boolean;
1056
- isEdited: boolean;
1057
- isDeleted: boolean;
1058
- isPinned: boolean;
1059
- isUnPinned: boolean;
1060
- isChannel: boolean;
1061
- isBroadcast: boolean;
1062
- isEphemeral: boolean;
1063
- isForwarded: boolean;
1064
- citation: Record<string, boolean> | null;
1065
- media: z.objectOutputType<{
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>>;
1068
- }, z.ZodTypeAny, "passthrough"> | null;
1069
- } | null;
1070
- } | null>;
1020
+ message?: (...args: unknown[]) => Record<string, any>;
1021
+ roomId?: string;
1022
+ isGroup?: boolean;
1023
+ text?: string;
1024
+ chatId?: string;
1025
+ channelId?: string;
1026
+ receiverId?: string;
1027
+ receiverName?: string;
1028
+ roomName?: string;
1029
+ senderId?: string;
1030
+ senderName?: string;
1031
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
1032
+ 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";
1033
+ timestamp?: number;
1034
+ mentions?: string[];
1035
+ links?: string[];
1036
+ isPrefix?: boolean;
1037
+ isFromMe?: boolean;
1038
+ isTagMe?: boolean;
1039
+ isStory?: boolean;
1040
+ isViewOnce?: boolean;
1041
+ isEdited?: boolean;
1042
+ isDeleted?: boolean;
1043
+ isPinned?: boolean;
1044
+ isUnPinned?: boolean;
1045
+ isChannel?: boolean;
1046
+ isBroadcast?: boolean;
1047
+ isEphemeral?: boolean;
1048
+ isForwarded?: boolean;
1049
+ citation?: Record<string, boolean>;
1050
+ media?: {
1051
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
1052
+ stream?: (...args: unknown[]) => stream.Readable;
1053
+ } & {
1054
+ [k: string]: unknown;
1055
+ };
1056
+ replied?: {
1057
+ message?: (...args: unknown[]) => Record<string, any>;
1058
+ roomId?: string;
1059
+ isGroup?: boolean;
1060
+ text?: string;
1061
+ chatId?: string;
1062
+ channelId?: string;
1063
+ receiverId?: string;
1064
+ receiverName?: string;
1065
+ roomName?: string;
1066
+ senderId?: string;
1067
+ senderName?: string;
1068
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
1069
+ 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";
1070
+ timestamp?: number;
1071
+ mentions?: string[];
1072
+ links?: string[];
1073
+ isPrefix?: boolean;
1074
+ isFromMe?: boolean;
1075
+ isTagMe?: boolean;
1076
+ isStory?: boolean;
1077
+ isViewOnce?: boolean;
1078
+ isEdited?: boolean;
1079
+ isDeleted?: boolean;
1080
+ isPinned?: boolean;
1081
+ isUnPinned?: boolean;
1082
+ isChannel?: boolean;
1083
+ isBroadcast?: boolean;
1084
+ isEphemeral?: boolean;
1085
+ isForwarded?: boolean;
1086
+ citation?: Record<string, boolean>;
1087
+ media?: {
1088
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
1089
+ stream?: (...args: unknown[]) => stream.Readable;
1090
+ } & {
1091
+ [k: string]: unknown;
1092
+ };
1093
+ };
1094
+ }>;
1071
1095
  reaction(emoticon: z.infer<typeof ReactionWorkerBaseType>, options: z.infer<typeof ReactionWorkerOptionsType>): Promise<{
1072
- message: (...args: unknown[]) => Record<string, any>;
1073
- roomId: string;
1074
- isGroup: boolean;
1075
- text: string | null;
1076
- chatId: string;
1077
- channelId: string;
1078
- receiverId: string;
1079
- receiverName: string;
1080
- roomName: string;
1081
- senderId: string;
1082
- senderName: string;
1083
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
1086
- mentions: string[];
1087
- links: string[];
1088
- isPrefix: boolean;
1089
- isFromMe: boolean;
1090
- isTagMe: boolean;
1091
- isStory: boolean;
1092
- isViewOnce: boolean;
1093
- isEdited: boolean;
1094
- isDeleted: boolean;
1095
- isPinned: boolean;
1096
- isUnPinned: boolean;
1097
- isChannel: boolean;
1098
- isBroadcast: boolean;
1099
- isEphemeral: boolean;
1100
- isForwarded: boolean;
1101
- citation: Record<string, boolean> | null;
1102
- media: z.objectOutputType<{
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>>;
1105
- }, z.ZodTypeAny, "passthrough"> | null;
1106
- replied: {
1107
- message: (...args: unknown[]) => Record<string, any>;
1108
- roomId: string;
1109
- isGroup: boolean;
1110
- text: string | null;
1111
- chatId: string;
1112
- channelId: string;
1113
- receiverId: string;
1114
- receiverName: string;
1115
- roomName: string;
1116
- senderId: string;
1117
- senderName: string;
1118
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
1121
- mentions: string[];
1122
- links: string[];
1123
- isPrefix: boolean;
1124
- isFromMe: boolean;
1125
- isTagMe: boolean;
1126
- isStory: boolean;
1127
- isViewOnce: boolean;
1128
- isEdited: boolean;
1129
- isDeleted: boolean;
1130
- isPinned: boolean;
1131
- isUnPinned: boolean;
1132
- isChannel: boolean;
1133
- isBroadcast: boolean;
1134
- isEphemeral: boolean;
1135
- isForwarded: boolean;
1136
- citation: Record<string, boolean> | null;
1137
- media: z.objectOutputType<{
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>>;
1140
- }, z.ZodTypeAny, "passthrough"> | null;
1141
- } | null;
1142
- } | null>;
1096
+ message?: (...args: unknown[]) => Record<string, any>;
1097
+ roomId?: string;
1098
+ isGroup?: boolean;
1099
+ text?: string;
1100
+ chatId?: string;
1101
+ channelId?: string;
1102
+ receiverId?: string;
1103
+ receiverName?: string;
1104
+ roomName?: string;
1105
+ senderId?: string;
1106
+ senderName?: string;
1107
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
1108
+ 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";
1109
+ timestamp?: number;
1110
+ mentions?: string[];
1111
+ links?: string[];
1112
+ isPrefix?: boolean;
1113
+ isFromMe?: boolean;
1114
+ isTagMe?: boolean;
1115
+ isStory?: boolean;
1116
+ isViewOnce?: boolean;
1117
+ isEdited?: boolean;
1118
+ isDeleted?: boolean;
1119
+ isPinned?: boolean;
1120
+ isUnPinned?: boolean;
1121
+ isChannel?: boolean;
1122
+ isBroadcast?: boolean;
1123
+ isEphemeral?: boolean;
1124
+ isForwarded?: boolean;
1125
+ citation?: Record<string, boolean>;
1126
+ media?: {
1127
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
1128
+ stream?: (...args: unknown[]) => stream.Readable;
1129
+ } & {
1130
+ [k: string]: unknown;
1131
+ };
1132
+ replied?: {
1133
+ message?: (...args: unknown[]) => Record<string, any>;
1134
+ roomId?: string;
1135
+ isGroup?: boolean;
1136
+ text?: string;
1137
+ chatId?: string;
1138
+ channelId?: string;
1139
+ receiverId?: string;
1140
+ receiverName?: string;
1141
+ roomName?: string;
1142
+ senderId?: string;
1143
+ senderName?: string;
1144
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
1145
+ 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";
1146
+ timestamp?: number;
1147
+ mentions?: string[];
1148
+ links?: string[];
1149
+ isPrefix?: boolean;
1150
+ isFromMe?: boolean;
1151
+ isTagMe?: boolean;
1152
+ isStory?: boolean;
1153
+ isViewOnce?: boolean;
1154
+ isEdited?: boolean;
1155
+ isDeleted?: boolean;
1156
+ isPinned?: boolean;
1157
+ isUnPinned?: boolean;
1158
+ isChannel?: boolean;
1159
+ isBroadcast?: boolean;
1160
+ isEphemeral?: boolean;
1161
+ isForwarded?: boolean;
1162
+ citation?: Record<string, boolean>;
1163
+ media?: {
1164
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
1165
+ stream?: (...args: unknown[]) => stream.Readable;
1166
+ } & {
1167
+ [k: string]: unknown;
1168
+ };
1169
+ };
1170
+ }>;
1143
1171
  pin(pin: z.infer<typeof PinWorkerBaseType>, options: z.infer<typeof PinWorkerOptionsType>): Promise<{
1144
- message: (...args: unknown[]) => Record<string, any>;
1145
- roomId: string;
1146
- isGroup: boolean;
1147
- text: string | null;
1148
- chatId: string;
1149
- channelId: string;
1150
- receiverId: string;
1151
- receiverName: string;
1152
- roomName: string;
1153
- senderId: string;
1154
- senderName: string;
1155
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
1158
- mentions: string[];
1159
- links: string[];
1160
- isPrefix: boolean;
1161
- isFromMe: boolean;
1162
- isTagMe: boolean;
1163
- isStory: boolean;
1164
- isViewOnce: boolean;
1165
- isEdited: boolean;
1166
- isDeleted: boolean;
1167
- isPinned: boolean;
1168
- isUnPinned: boolean;
1169
- isChannel: boolean;
1170
- isBroadcast: boolean;
1171
- isEphemeral: boolean;
1172
- isForwarded: boolean;
1173
- citation: Record<string, boolean> | null;
1174
- media: z.objectOutputType<{
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>>;
1177
- }, z.ZodTypeAny, "passthrough"> | null;
1178
- replied: {
1179
- message: (...args: unknown[]) => Record<string, any>;
1180
- roomId: string;
1181
- isGroup: boolean;
1182
- text: string | null;
1183
- chatId: string;
1184
- channelId: string;
1185
- receiverId: string;
1186
- receiverName: string;
1187
- roomName: string;
1188
- senderId: string;
1189
- senderName: string;
1190
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
1193
- mentions: string[];
1194
- links: string[];
1195
- isPrefix: boolean;
1196
- isFromMe: boolean;
1197
- isTagMe: boolean;
1198
- isStory: boolean;
1199
- isViewOnce: boolean;
1200
- isEdited: boolean;
1201
- isDeleted: boolean;
1202
- isPinned: boolean;
1203
- isUnPinned: boolean;
1204
- isChannel: boolean;
1205
- isBroadcast: boolean;
1206
- isEphemeral: boolean;
1207
- isForwarded: boolean;
1208
- citation: Record<string, boolean> | null;
1209
- media: z.objectOutputType<{
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>>;
1212
- }, z.ZodTypeAny, "passthrough"> | null;
1213
- } | null;
1214
- } | null>;
1172
+ message?: (...args: unknown[]) => Record<string, any>;
1173
+ roomId?: string;
1174
+ isGroup?: boolean;
1175
+ text?: string;
1176
+ chatId?: string;
1177
+ channelId?: string;
1178
+ receiverId?: string;
1179
+ receiverName?: string;
1180
+ roomName?: string;
1181
+ senderId?: string;
1182
+ senderName?: string;
1183
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
1184
+ 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";
1185
+ timestamp?: number;
1186
+ mentions?: string[];
1187
+ links?: string[];
1188
+ isPrefix?: boolean;
1189
+ isFromMe?: boolean;
1190
+ isTagMe?: boolean;
1191
+ isStory?: boolean;
1192
+ isViewOnce?: boolean;
1193
+ isEdited?: boolean;
1194
+ isDeleted?: boolean;
1195
+ isPinned?: boolean;
1196
+ isUnPinned?: boolean;
1197
+ isChannel?: boolean;
1198
+ isBroadcast?: boolean;
1199
+ isEphemeral?: boolean;
1200
+ isForwarded?: boolean;
1201
+ citation?: Record<string, boolean>;
1202
+ media?: {
1203
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
1204
+ stream?: (...args: unknown[]) => stream.Readable;
1205
+ } & {
1206
+ [k: string]: unknown;
1207
+ };
1208
+ replied?: {
1209
+ message?: (...args: unknown[]) => Record<string, any>;
1210
+ roomId?: string;
1211
+ isGroup?: boolean;
1212
+ text?: string;
1213
+ chatId?: string;
1214
+ channelId?: string;
1215
+ receiverId?: string;
1216
+ receiverName?: string;
1217
+ roomName?: string;
1218
+ senderId?: string;
1219
+ senderName?: string;
1220
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
1221
+ 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";
1222
+ timestamp?: number;
1223
+ mentions?: string[];
1224
+ links?: string[];
1225
+ isPrefix?: boolean;
1226
+ isFromMe?: boolean;
1227
+ isTagMe?: boolean;
1228
+ isStory?: boolean;
1229
+ isViewOnce?: boolean;
1230
+ isEdited?: boolean;
1231
+ isDeleted?: boolean;
1232
+ isPinned?: boolean;
1233
+ isUnPinned?: boolean;
1234
+ isChannel?: boolean;
1235
+ isBroadcast?: boolean;
1236
+ isEphemeral?: boolean;
1237
+ isForwarded?: boolean;
1238
+ citation?: Record<string, boolean>;
1239
+ media?: {
1240
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
1241
+ stream?: (...args: unknown[]) => stream.Readable;
1242
+ } & {
1243
+ [k: string]: unknown;
1244
+ };
1245
+ };
1246
+ }>;
1215
1247
  poll(poll: z.infer<typeof PollWorkerBaseType>, options: z.infer<typeof PollWorkerOptionsType>): Promise<{
1216
- message: (...args: unknown[]) => Record<string, any>;
1217
- roomId: string;
1218
- isGroup: boolean;
1219
- text: string | null;
1220
- chatId: string;
1221
- channelId: string;
1222
- receiverId: string;
1223
- receiverName: string;
1224
- roomName: string;
1225
- senderId: string;
1226
- senderName: string;
1227
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
1230
- mentions: string[];
1231
- links: string[];
1232
- isPrefix: boolean;
1233
- isFromMe: boolean;
1234
- isTagMe: boolean;
1235
- isStory: boolean;
1236
- isViewOnce: boolean;
1237
- isEdited: boolean;
1238
- isDeleted: boolean;
1239
- isPinned: boolean;
1240
- isUnPinned: boolean;
1241
- isChannel: boolean;
1242
- isBroadcast: boolean;
1243
- isEphemeral: boolean;
1244
- isForwarded: boolean;
1245
- citation: Record<string, boolean> | null;
1246
- media: z.objectOutputType<{
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>>;
1249
- }, z.ZodTypeAny, "passthrough"> | null;
1250
- replied: {
1251
- message: (...args: unknown[]) => Record<string, any>;
1252
- roomId: string;
1253
- isGroup: boolean;
1254
- text: string | null;
1255
- chatId: string;
1256
- channelId: string;
1257
- receiverId: string;
1258
- receiverName: string;
1259
- roomName: string;
1260
- senderId: string;
1261
- senderName: string;
1262
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
1265
- mentions: string[];
1266
- links: string[];
1267
- isPrefix: boolean;
1268
- isFromMe: boolean;
1269
- isTagMe: boolean;
1270
- isStory: boolean;
1271
- isViewOnce: boolean;
1272
- isEdited: boolean;
1273
- isDeleted: boolean;
1274
- isPinned: boolean;
1275
- isUnPinned: boolean;
1276
- isChannel: boolean;
1277
- isBroadcast: boolean;
1278
- isEphemeral: boolean;
1279
- isForwarded: boolean;
1280
- citation: Record<string, boolean> | null;
1281
- media: z.objectOutputType<{
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>>;
1284
- }, z.ZodTypeAny, "passthrough"> | null;
1285
- } | null;
1286
- } | null>;
1248
+ message?: (...args: unknown[]) => Record<string, any>;
1249
+ roomId?: string;
1250
+ isGroup?: boolean;
1251
+ text?: string;
1252
+ chatId?: string;
1253
+ channelId?: string;
1254
+ receiverId?: string;
1255
+ receiverName?: string;
1256
+ roomName?: string;
1257
+ senderId?: string;
1258
+ senderName?: string;
1259
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
1260
+ 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";
1261
+ timestamp?: number;
1262
+ mentions?: string[];
1263
+ links?: string[];
1264
+ isPrefix?: boolean;
1265
+ isFromMe?: boolean;
1266
+ isTagMe?: boolean;
1267
+ isStory?: boolean;
1268
+ isViewOnce?: boolean;
1269
+ isEdited?: boolean;
1270
+ isDeleted?: boolean;
1271
+ isPinned?: boolean;
1272
+ isUnPinned?: boolean;
1273
+ isChannel?: boolean;
1274
+ isBroadcast?: boolean;
1275
+ isEphemeral?: boolean;
1276
+ isForwarded?: boolean;
1277
+ citation?: Record<string, boolean>;
1278
+ media?: {
1279
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
1280
+ stream?: (...args: unknown[]) => stream.Readable;
1281
+ } & {
1282
+ [k: string]: unknown;
1283
+ };
1284
+ replied?: {
1285
+ message?: (...args: unknown[]) => Record<string, any>;
1286
+ roomId?: string;
1287
+ isGroup?: boolean;
1288
+ text?: string;
1289
+ chatId?: string;
1290
+ channelId?: string;
1291
+ receiverId?: string;
1292
+ receiverName?: string;
1293
+ roomName?: string;
1294
+ senderId?: string;
1295
+ senderName?: string;
1296
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
1297
+ 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";
1298
+ timestamp?: number;
1299
+ mentions?: string[];
1300
+ links?: string[];
1301
+ isPrefix?: boolean;
1302
+ isFromMe?: boolean;
1303
+ isTagMe?: boolean;
1304
+ isStory?: boolean;
1305
+ isViewOnce?: boolean;
1306
+ isEdited?: boolean;
1307
+ isDeleted?: boolean;
1308
+ isPinned?: boolean;
1309
+ isUnPinned?: boolean;
1310
+ isChannel?: boolean;
1311
+ isBroadcast?: boolean;
1312
+ isEphemeral?: boolean;
1313
+ isForwarded?: boolean;
1314
+ citation?: Record<string, boolean>;
1315
+ media?: {
1316
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
1317
+ stream?: (...args: unknown[]) => stream.Readable;
1318
+ } & {
1319
+ [k: string]: unknown;
1320
+ };
1321
+ };
1322
+ }>;
1287
1323
  edit(text: z.infer<typeof EditWorkerBaseType>, options: z.infer<typeof EditWorkerOptionsType>): Promise<{
1288
- message: (...args: unknown[]) => Record<string, any>;
1289
- roomId: string;
1290
- isGroup: boolean;
1291
- text: string | null;
1292
- chatId: string;
1293
- channelId: string;
1294
- receiverId: string;
1295
- receiverName: string;
1296
- roomName: string;
1297
- senderId: string;
1298
- senderName: string;
1299
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
1302
- mentions: string[];
1303
- links: string[];
1304
- isPrefix: boolean;
1305
- isFromMe: boolean;
1306
- isTagMe: boolean;
1307
- isStory: boolean;
1308
- isViewOnce: boolean;
1309
- isEdited: boolean;
1310
- isDeleted: boolean;
1311
- isPinned: boolean;
1312
- isUnPinned: boolean;
1313
- isChannel: boolean;
1314
- isBroadcast: boolean;
1315
- isEphemeral: boolean;
1316
- isForwarded: boolean;
1317
- citation: Record<string, boolean> | null;
1318
- media: z.objectOutputType<{
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>>;
1321
- }, z.ZodTypeAny, "passthrough"> | null;
1322
- replied: {
1323
- message: (...args: unknown[]) => Record<string, any>;
1324
- roomId: string;
1325
- isGroup: boolean;
1326
- text: string | null;
1327
- chatId: string;
1328
- channelId: string;
1329
- receiverId: string;
1330
- receiverName: string;
1331
- roomName: string;
1332
- senderId: string;
1333
- senderName: string;
1334
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
1337
- mentions: string[];
1338
- links: string[];
1339
- isPrefix: boolean;
1340
- isFromMe: boolean;
1341
- isTagMe: boolean;
1342
- isStory: boolean;
1343
- isViewOnce: boolean;
1344
- isEdited: boolean;
1345
- isDeleted: boolean;
1346
- isPinned: boolean;
1347
- isUnPinned: boolean;
1348
- isChannel: boolean;
1349
- isBroadcast: boolean;
1350
- isEphemeral: boolean;
1351
- isForwarded: boolean;
1352
- citation: Record<string, boolean> | null;
1353
- media: z.objectOutputType<{
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>>;
1356
- }, z.ZodTypeAny, "passthrough"> | null;
1357
- } | null;
1358
- } | null>;
1324
+ message?: (...args: unknown[]) => Record<string, any>;
1325
+ roomId?: string;
1326
+ isGroup?: boolean;
1327
+ text?: string;
1328
+ chatId?: string;
1329
+ channelId?: string;
1330
+ receiverId?: string;
1331
+ receiverName?: string;
1332
+ roomName?: string;
1333
+ senderId?: string;
1334
+ senderName?: string;
1335
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
1336
+ 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";
1337
+ timestamp?: number;
1338
+ mentions?: string[];
1339
+ links?: string[];
1340
+ isPrefix?: boolean;
1341
+ isFromMe?: boolean;
1342
+ isTagMe?: boolean;
1343
+ isStory?: boolean;
1344
+ isViewOnce?: boolean;
1345
+ isEdited?: boolean;
1346
+ isDeleted?: boolean;
1347
+ isPinned?: boolean;
1348
+ isUnPinned?: boolean;
1349
+ isChannel?: boolean;
1350
+ isBroadcast?: boolean;
1351
+ isEphemeral?: boolean;
1352
+ isForwarded?: boolean;
1353
+ citation?: Record<string, boolean>;
1354
+ media?: {
1355
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
1356
+ stream?: (...args: unknown[]) => stream.Readable;
1357
+ } & {
1358
+ [k: string]: unknown;
1359
+ };
1360
+ replied?: {
1361
+ message?: (...args: unknown[]) => Record<string, any>;
1362
+ roomId?: string;
1363
+ isGroup?: boolean;
1364
+ text?: string;
1365
+ chatId?: string;
1366
+ channelId?: string;
1367
+ receiverId?: string;
1368
+ receiverName?: string;
1369
+ roomName?: string;
1370
+ senderId?: string;
1371
+ senderName?: string;
1372
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
1373
+ 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";
1374
+ timestamp?: number;
1375
+ mentions?: string[];
1376
+ links?: string[];
1377
+ isPrefix?: boolean;
1378
+ isFromMe?: boolean;
1379
+ isTagMe?: boolean;
1380
+ isStory?: boolean;
1381
+ isViewOnce?: boolean;
1382
+ isEdited?: boolean;
1383
+ isDeleted?: boolean;
1384
+ isPinned?: boolean;
1385
+ isUnPinned?: boolean;
1386
+ isChannel?: boolean;
1387
+ isBroadcast?: boolean;
1388
+ isEphemeral?: boolean;
1389
+ isForwarded?: boolean;
1390
+ citation?: Record<string, boolean>;
1391
+ media?: {
1392
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
1393
+ stream?: (...args: unknown[]) => stream.Readable;
1394
+ } & {
1395
+ [k: string]: unknown;
1396
+ };
1397
+ };
1398
+ }>;
1359
1399
  delete(del: z.infer<typeof DeleteWorkerBaseType>): Promise<{
1360
- message: (...args: unknown[]) => Record<string, any>;
1361
- roomId: string;
1362
- isGroup: boolean;
1363
- text: string | null;
1364
- chatId: string;
1365
- channelId: string;
1366
- receiverId: string;
1367
- receiverName: string;
1368
- roomName: string;
1369
- senderId: string;
1370
- senderName: string;
1371
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
1374
- mentions: string[];
1375
- links: string[];
1376
- isPrefix: boolean;
1377
- isFromMe: boolean;
1378
- isTagMe: boolean;
1379
- isStory: boolean;
1380
- isViewOnce: boolean;
1381
- isEdited: boolean;
1382
- isDeleted: boolean;
1383
- isPinned: boolean;
1384
- isUnPinned: boolean;
1385
- isChannel: boolean;
1386
- isBroadcast: boolean;
1387
- isEphemeral: boolean;
1388
- isForwarded: boolean;
1389
- citation: Record<string, boolean> | null;
1390
- media: z.objectOutputType<{
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>>;
1393
- }, z.ZodTypeAny, "passthrough"> | null;
1394
- replied: {
1395
- message: (...args: unknown[]) => Record<string, any>;
1396
- roomId: string;
1397
- isGroup: boolean;
1398
- text: string | null;
1399
- chatId: string;
1400
- channelId: string;
1401
- receiverId: string;
1402
- receiverName: string;
1403
- roomName: string;
1404
- senderId: string;
1405
- senderName: string;
1406
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
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;
1409
- mentions: string[];
1410
- links: string[];
1411
- isPrefix: boolean;
1412
- isFromMe: boolean;
1413
- isTagMe: boolean;
1414
- isStory: boolean;
1415
- isViewOnce: boolean;
1416
- isEdited: boolean;
1417
- isDeleted: boolean;
1418
- isPinned: boolean;
1419
- isUnPinned: boolean;
1420
- isChannel: boolean;
1421
- isBroadcast: boolean;
1422
- isEphemeral: boolean;
1423
- isForwarded: boolean;
1424
- citation: Record<string, boolean> | null;
1425
- media: z.objectOutputType<{
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>>;
1428
- }, z.ZodTypeAny, "passthrough"> | null;
1429
- } | null;
1430
- } | null>;
1431
- rejectCall(call: z.infer<typeof RejectCallWorkerBaseType>): Promise<void | undefined>;
1432
- mute(mute: z.infer<typeof MuteWorkerBaseType>, options: z.infer<typeof MuteWorkerOptionsType>): Promise<void | undefined>;
1400
+ message?: (...args: unknown[]) => Record<string, any>;
1401
+ roomId?: string;
1402
+ isGroup?: boolean;
1403
+ text?: string;
1404
+ chatId?: string;
1405
+ channelId?: string;
1406
+ receiverId?: string;
1407
+ receiverName?: string;
1408
+ roomName?: string;
1409
+ senderId?: string;
1410
+ senderName?: string;
1411
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
1412
+ 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";
1413
+ timestamp?: number;
1414
+ mentions?: string[];
1415
+ links?: string[];
1416
+ isPrefix?: boolean;
1417
+ isFromMe?: boolean;
1418
+ isTagMe?: boolean;
1419
+ isStory?: boolean;
1420
+ isViewOnce?: boolean;
1421
+ isEdited?: boolean;
1422
+ isDeleted?: boolean;
1423
+ isPinned?: boolean;
1424
+ isUnPinned?: boolean;
1425
+ isChannel?: boolean;
1426
+ isBroadcast?: boolean;
1427
+ isEphemeral?: boolean;
1428
+ isForwarded?: boolean;
1429
+ citation?: Record<string, boolean>;
1430
+ media?: {
1431
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
1432
+ stream?: (...args: unknown[]) => stream.Readable;
1433
+ } & {
1434
+ [k: string]: unknown;
1435
+ };
1436
+ replied?: {
1437
+ message?: (...args: unknown[]) => Record<string, any>;
1438
+ roomId?: string;
1439
+ isGroup?: boolean;
1440
+ text?: string;
1441
+ chatId?: string;
1442
+ channelId?: string;
1443
+ receiverId?: string;
1444
+ receiverName?: string;
1445
+ roomName?: string;
1446
+ senderId?: string;
1447
+ senderName?: string;
1448
+ senderDevice?: "unknown" | "android" | "ios" | "desktop" | "web";
1449
+ 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";
1450
+ timestamp?: number;
1451
+ mentions?: string[];
1452
+ links?: string[];
1453
+ isPrefix?: boolean;
1454
+ isFromMe?: boolean;
1455
+ isTagMe?: boolean;
1456
+ isStory?: boolean;
1457
+ isViewOnce?: boolean;
1458
+ isEdited?: boolean;
1459
+ isDeleted?: boolean;
1460
+ isPinned?: boolean;
1461
+ isUnPinned?: boolean;
1462
+ isChannel?: boolean;
1463
+ isBroadcast?: boolean;
1464
+ isEphemeral?: boolean;
1465
+ isForwarded?: boolean;
1466
+ citation?: Record<string, boolean>;
1467
+ media?: {
1468
+ buffer?: (...args: unknown[]) => Buffer<ArrayBufferLike>;
1469
+ stream?: (...args: unknown[]) => stream.Readable;
1470
+ } & {
1471
+ [k: string]: unknown;
1472
+ };
1473
+ };
1474
+ }>;
1475
+ rejectCall(call: z.infer<typeof RejectCallWorkerBaseType>): Promise<void>;
1476
+ mute(mute: z.infer<typeof MuteWorkerBaseType>, options: z.infer<typeof MuteWorkerOptionsType>): Promise<void>;
1433
1477
  profile(roomId: z.infer<typeof ProfileWorkerBaseType>): Promise<z.infer<typeof ProfileWorkerBaseOutputType> | null>;
1434
- presence(action: z.infer<typeof PresenceWorkerBaseType>, options: z.infer<typeof PresenceWorkerOptionsType>): Promise<void | undefined>;
1478
+ presence(action: z.infer<typeof PresenceWorkerBaseType>, options: z.infer<typeof PresenceWorkerOptionsType>): Promise<void>;
1435
1479
  }
1436
1480
 
1437
1481
  declare class Client {