@fragno-dev/telegram-fragment 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/browser/client/react.d.ts +129 -3
  2. package/dist/browser/client/react.d.ts.map +1 -1
  3. package/dist/browser/client/react.js +32 -22
  4. package/dist/browser/client/react.js.map +1 -1
  5. package/dist/browser/client/solid.d.ts +129 -3
  6. package/dist/browser/client/solid.d.ts.map +1 -1
  7. package/dist/browser/client/solid.js +2 -2
  8. package/dist/browser/client/solid.js.map +1 -1
  9. package/dist/browser/client/svelte.d.ts +129 -3
  10. package/dist/browser/client/svelte.d.ts.map +1 -1
  11. package/dist/browser/client/svelte.js +1 -1
  12. package/dist/browser/client/vanilla.d.ts +129 -3
  13. package/dist/browser/client/vanilla.d.ts.map +1 -1
  14. package/dist/browser/client/vanilla.js +1 -1
  15. package/dist/browser/client/vue.d.ts +129 -3
  16. package/dist/browser/client/vue.d.ts.map +1 -1
  17. package/dist/browser/client/vue.js +1 -1
  18. package/dist/browser/{client-Bk-J98pf.d.ts → client-BumUy6cu.d.ts} +87 -83
  19. package/dist/browser/client-BumUy6cu.d.ts.map +1 -0
  20. package/dist/browser/index.d.ts +697 -48
  21. package/dist/browser/index.d.ts.map +1 -1
  22. package/dist/browser/index.js +2 -2
  23. package/dist/browser/index.js.map +1 -1
  24. package/dist/browser/{schema-QDMf15Vn.js → schema-IrJsGm4M.js} +264 -41
  25. package/dist/browser/schema-IrJsGm4M.js.map +1 -0
  26. package/dist/node/definition.d.ts.map +1 -1
  27. package/dist/node/index.d.ts +260 -13
  28. package/dist/node/index.d.ts.map +1 -1
  29. package/dist/node/index.js +2 -2
  30. package/dist/node/index.js.map +1 -1
  31. package/dist/node/routes.d.ts +130 -9
  32. package/dist/node/routes.d.ts.map +1 -1
  33. package/dist/node/routes.js +25 -15
  34. package/dist/node/routes.js.map +1 -1
  35. package/dist/node/services.js +56 -53
  36. package/dist/node/services.js.map +1 -1
  37. package/dist/node/telegram-api.js +80 -16
  38. package/dist/node/telegram-api.js.map +1 -1
  39. package/dist/node/telegram-utils.js +284 -9
  40. package/dist/node/telegram-utils.js.map +1 -1
  41. package/dist/node/types.d.ts +308 -27
  42. package/dist/node/types.d.ts.map +1 -1
  43. package/dist/node/types.js +232 -27
  44. package/dist/node/types.js.map +1 -1
  45. package/dist/tsconfig.tsbuildinfo +1 -1
  46. package/package.json +13 -8
  47. package/dist/browser/client-Bk-J98pf.d.ts.map +0 -1
  48. package/dist/browser/schema-QDMf15Vn.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { n as FragnoClientMutatorData, o as NonGetHTTPMethod, s as FragnoPublicClientConfig, t as FragnoClientHookData } from "./client-Bk-J98pf.js";
1
+ import { a as FragnoPublicClientConfig, n as FragnoClientMutatorData, o as NonGetHTTPMethod, t as FragnoClientHookData } from "./client-BumUy6cu.js";
2
2
  import * as _fragno_dev_core0 from "@fragno-dev/core";
3
3
  import { FragnoRouteConfig } from "@fragno-dev/core";
4
4
  import * as zod from "zod";
@@ -19,20 +19,290 @@ declare const telegramChatTypeSchema: z.ZodEnum<{
19
19
  }>;
20
20
  type TelegramChatType = z.infer<typeof telegramChatTypeSchema>;
21
21
  type TelegramCommandScope = TelegramChatType;
22
+ declare const telegramPhotoSizeSchema: z.ZodObject<{
23
+ fileId: z.ZodString;
24
+ fileUniqueId: z.ZodString;
25
+ width: z.ZodNumber;
26
+ height: z.ZodNumber;
27
+ fileSize: z.ZodOptional<z.ZodNumber>;
28
+ }, z.core.$strip>;
29
+ type TelegramPhotoSize = z.infer<typeof telegramPhotoSizeSchema>;
30
+ declare const telegramVoiceSchema: z.ZodObject<{
31
+ fileId: z.ZodString;
32
+ fileUniqueId: z.ZodString;
33
+ duration: z.ZodNumber;
34
+ mimeType: z.ZodOptional<z.ZodString>;
35
+ fileSize: z.ZodOptional<z.ZodNumber>;
36
+ }, z.core.$strip>;
37
+ type TelegramVoice = z.infer<typeof telegramVoiceSchema>;
38
+ declare const telegramAudioSchema: z.ZodObject<{
39
+ fileId: z.ZodString;
40
+ fileUniqueId: z.ZodString;
41
+ duration: z.ZodNumber;
42
+ performer: z.ZodOptional<z.ZodString>;
43
+ title: z.ZodOptional<z.ZodString>;
44
+ fileName: z.ZodOptional<z.ZodString>;
45
+ mimeType: z.ZodOptional<z.ZodString>;
46
+ fileSize: z.ZodOptional<z.ZodNumber>;
47
+ thumbnail: z.ZodOptional<z.ZodObject<{
48
+ fileId: z.ZodString;
49
+ fileUniqueId: z.ZodString;
50
+ width: z.ZodNumber;
51
+ height: z.ZodNumber;
52
+ fileSize: z.ZodOptional<z.ZodNumber>;
53
+ }, z.core.$strip>>;
54
+ }, z.core.$strip>;
55
+ type TelegramAudio = z.infer<typeof telegramAudioSchema>;
56
+ declare const telegramDocumentSchema: z.ZodObject<{
57
+ fileId: z.ZodString;
58
+ fileUniqueId: z.ZodString;
59
+ fileName: z.ZodOptional<z.ZodString>;
60
+ mimeType: z.ZodOptional<z.ZodString>;
61
+ fileSize: z.ZodOptional<z.ZodNumber>;
62
+ thumbnail: z.ZodOptional<z.ZodObject<{
63
+ fileId: z.ZodString;
64
+ fileUniqueId: z.ZodString;
65
+ width: z.ZodNumber;
66
+ height: z.ZodNumber;
67
+ fileSize: z.ZodOptional<z.ZodNumber>;
68
+ }, z.core.$strip>>;
69
+ }, z.core.$strip>;
70
+ type TelegramDocument = z.infer<typeof telegramDocumentSchema>;
71
+ declare const telegramVideoSchema: z.ZodObject<{
72
+ fileId: z.ZodString;
73
+ fileUniqueId: z.ZodString;
74
+ width: z.ZodNumber;
75
+ height: z.ZodNumber;
76
+ duration: z.ZodNumber;
77
+ fileName: z.ZodOptional<z.ZodString>;
78
+ mimeType: z.ZodOptional<z.ZodString>;
79
+ fileSize: z.ZodOptional<z.ZodNumber>;
80
+ thumbnail: z.ZodOptional<z.ZodObject<{
81
+ fileId: z.ZodString;
82
+ fileUniqueId: z.ZodString;
83
+ width: z.ZodNumber;
84
+ height: z.ZodNumber;
85
+ fileSize: z.ZodOptional<z.ZodNumber>;
86
+ }, z.core.$strip>>;
87
+ }, z.core.$strip>;
88
+ type TelegramVideo = z.infer<typeof telegramVideoSchema>;
89
+ declare const telegramVideoNoteSchema: z.ZodObject<{
90
+ fileId: z.ZodString;
91
+ fileUniqueId: z.ZodString;
92
+ length: z.ZodNumber;
93
+ duration: z.ZodNumber;
94
+ fileSize: z.ZodOptional<z.ZodNumber>;
95
+ thumbnail: z.ZodOptional<z.ZodObject<{
96
+ fileId: z.ZodString;
97
+ fileUniqueId: z.ZodString;
98
+ width: z.ZodNumber;
99
+ height: z.ZodNumber;
100
+ fileSize: z.ZodOptional<z.ZodNumber>;
101
+ }, z.core.$strip>>;
102
+ }, z.core.$strip>;
103
+ type TelegramVideoNote = z.infer<typeof telegramVideoNoteSchema>;
104
+ declare const telegramStickerSchema: z.ZodObject<{
105
+ fileId: z.ZodString;
106
+ fileUniqueId: z.ZodString;
107
+ type: z.ZodEnum<{
108
+ regular: "regular";
109
+ mask: "mask";
110
+ custom_emoji: "custom_emoji";
111
+ }>;
112
+ width: z.ZodNumber;
113
+ height: z.ZodNumber;
114
+ isAnimated: z.ZodBoolean;
115
+ isVideo: z.ZodBoolean;
116
+ thumbnail: z.ZodOptional<z.ZodObject<{
117
+ fileId: z.ZodString;
118
+ fileUniqueId: z.ZodString;
119
+ width: z.ZodNumber;
120
+ height: z.ZodNumber;
121
+ fileSize: z.ZodOptional<z.ZodNumber>;
122
+ }, z.core.$strip>>;
123
+ emoji: z.ZodOptional<z.ZodString>;
124
+ setName: z.ZodOptional<z.ZodString>;
125
+ fileSize: z.ZodOptional<z.ZodNumber>;
126
+ }, z.core.$strip>;
127
+ type TelegramSticker = z.infer<typeof telegramStickerSchema>;
128
+ declare const telegramAnimationSchema: z.ZodObject<{
129
+ fileId: z.ZodString;
130
+ fileUniqueId: z.ZodString;
131
+ width: z.ZodNumber;
132
+ height: z.ZodNumber;
133
+ duration: z.ZodNumber;
134
+ fileName: z.ZodOptional<z.ZodString>;
135
+ mimeType: z.ZodOptional<z.ZodString>;
136
+ fileSize: z.ZodOptional<z.ZodNumber>;
137
+ thumbnail: z.ZodOptional<z.ZodObject<{
138
+ fileId: z.ZodString;
139
+ fileUniqueId: z.ZodString;
140
+ width: z.ZodNumber;
141
+ height: z.ZodNumber;
142
+ fileSize: z.ZodOptional<z.ZodNumber>;
143
+ }, z.core.$strip>>;
144
+ }, z.core.$strip>;
145
+ type TelegramAnimation = z.infer<typeof telegramAnimationSchema>;
146
+ declare const telegramAttachmentKindSchema: z.ZodEnum<{
147
+ photo: "photo";
148
+ voice: "voice";
149
+ audio: "audio";
150
+ document: "document";
151
+ video: "video";
152
+ video_note: "video_note";
153
+ sticker: "sticker";
154
+ animation: "animation";
155
+ }>;
156
+ type TelegramAttachmentKind = z.infer<typeof telegramAttachmentKindSchema>;
157
+ declare const telegramAttachmentPhotoSizeSchema: z.ZodObject<{
158
+ fileId: z.ZodString;
159
+ fileUniqueId: z.ZodString;
160
+ fileSize: z.ZodOptional<z.ZodNumber>;
161
+ width: z.ZodNumber;
162
+ height: z.ZodNumber;
163
+ }, z.core.$strip>;
164
+ type TelegramAttachmentPhotoSize = z.infer<typeof telegramAttachmentPhotoSizeSchema>;
165
+ declare const telegramAttachmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
166
+ kind: z.ZodLiteral<"photo">;
167
+ fileId: z.ZodString;
168
+ fileUniqueId: z.ZodString;
169
+ fileSize: z.ZodOptional<z.ZodNumber>;
170
+ width: z.ZodNumber;
171
+ height: z.ZodNumber;
172
+ thumbnail: z.ZodOptional<z.ZodObject<{
173
+ fileId: z.ZodString;
174
+ fileUniqueId: z.ZodString;
175
+ fileSize: z.ZodOptional<z.ZodNumber>;
176
+ width: z.ZodNumber;
177
+ height: z.ZodNumber;
178
+ }, z.core.$strip>>;
179
+ sizes: z.ZodArray<z.ZodObject<{
180
+ fileId: z.ZodString;
181
+ fileUniqueId: z.ZodString;
182
+ fileSize: z.ZodOptional<z.ZodNumber>;
183
+ width: z.ZodNumber;
184
+ height: z.ZodNumber;
185
+ }, z.core.$strip>>;
186
+ }, z.core.$strip>, z.ZodObject<{
187
+ kind: z.ZodLiteral<"voice">;
188
+ fileId: z.ZodString;
189
+ fileUniqueId: z.ZodString;
190
+ fileSize: z.ZodOptional<z.ZodNumber>;
191
+ duration: z.ZodNumber;
192
+ mimeType: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strip>, z.ZodObject<{
194
+ kind: z.ZodLiteral<"audio">;
195
+ fileId: z.ZodString;
196
+ fileUniqueId: z.ZodString;
197
+ fileSize: z.ZodOptional<z.ZodNumber>;
198
+ duration: z.ZodNumber;
199
+ performer: z.ZodOptional<z.ZodString>;
200
+ title: z.ZodOptional<z.ZodString>;
201
+ fileName: z.ZodOptional<z.ZodString>;
202
+ mimeType: z.ZodOptional<z.ZodString>;
203
+ thumbnail: z.ZodOptional<z.ZodObject<{
204
+ fileId: z.ZodString;
205
+ fileUniqueId: z.ZodString;
206
+ fileSize: z.ZodOptional<z.ZodNumber>;
207
+ width: z.ZodNumber;
208
+ height: z.ZodNumber;
209
+ }, z.core.$strip>>;
210
+ }, z.core.$strip>, z.ZodObject<{
211
+ kind: z.ZodLiteral<"document">;
212
+ fileId: z.ZodString;
213
+ fileUniqueId: z.ZodString;
214
+ fileSize: z.ZodOptional<z.ZodNumber>;
215
+ fileName: z.ZodOptional<z.ZodString>;
216
+ mimeType: z.ZodOptional<z.ZodString>;
217
+ thumbnail: z.ZodOptional<z.ZodObject<{
218
+ fileId: z.ZodString;
219
+ fileUniqueId: z.ZodString;
220
+ fileSize: z.ZodOptional<z.ZodNumber>;
221
+ width: z.ZodNumber;
222
+ height: z.ZodNumber;
223
+ }, z.core.$strip>>;
224
+ }, z.core.$strip>, z.ZodObject<{
225
+ kind: z.ZodLiteral<"video">;
226
+ fileId: z.ZodString;
227
+ fileUniqueId: z.ZodString;
228
+ fileSize: z.ZodOptional<z.ZodNumber>;
229
+ width: z.ZodNumber;
230
+ height: z.ZodNumber;
231
+ duration: z.ZodNumber;
232
+ fileName: z.ZodOptional<z.ZodString>;
233
+ mimeType: z.ZodOptional<z.ZodString>;
234
+ thumbnail: z.ZodOptional<z.ZodObject<{
235
+ fileId: z.ZodString;
236
+ fileUniqueId: z.ZodString;
237
+ fileSize: z.ZodOptional<z.ZodNumber>;
238
+ width: z.ZodNumber;
239
+ height: z.ZodNumber;
240
+ }, z.core.$strip>>;
241
+ }, z.core.$strip>, z.ZodObject<{
242
+ kind: z.ZodLiteral<"video_note">;
243
+ fileId: z.ZodString;
244
+ fileUniqueId: z.ZodString;
245
+ fileSize: z.ZodOptional<z.ZodNumber>;
246
+ length: z.ZodNumber;
247
+ duration: z.ZodNumber;
248
+ thumbnail: z.ZodOptional<z.ZodObject<{
249
+ fileId: z.ZodString;
250
+ fileUniqueId: z.ZodString;
251
+ fileSize: z.ZodOptional<z.ZodNumber>;
252
+ width: z.ZodNumber;
253
+ height: z.ZodNumber;
254
+ }, z.core.$strip>>;
255
+ }, z.core.$strip>, z.ZodObject<{
256
+ kind: z.ZodLiteral<"sticker">;
257
+ fileId: z.ZodString;
258
+ fileUniqueId: z.ZodString;
259
+ fileSize: z.ZodOptional<z.ZodNumber>;
260
+ width: z.ZodNumber;
261
+ height: z.ZodNumber;
262
+ emoji: z.ZodOptional<z.ZodString>;
263
+ setName: z.ZodOptional<z.ZodString>;
264
+ isAnimated: z.ZodBoolean;
265
+ isVideo: z.ZodBoolean;
266
+ thumbnail: z.ZodOptional<z.ZodObject<{
267
+ fileId: z.ZodString;
268
+ fileUniqueId: z.ZodString;
269
+ fileSize: z.ZodOptional<z.ZodNumber>;
270
+ width: z.ZodNumber;
271
+ height: z.ZodNumber;
272
+ }, z.core.$strip>>;
273
+ }, z.core.$strip>, z.ZodObject<{
274
+ kind: z.ZodLiteral<"animation">;
275
+ fileId: z.ZodString;
276
+ fileUniqueId: z.ZodString;
277
+ fileSize: z.ZodOptional<z.ZodNumber>;
278
+ width: z.ZodNumber;
279
+ height: z.ZodNumber;
280
+ duration: z.ZodNumber;
281
+ fileName: z.ZodOptional<z.ZodString>;
282
+ mimeType: z.ZodOptional<z.ZodString>;
283
+ thumbnail: z.ZodOptional<z.ZodObject<{
284
+ fileId: z.ZodString;
285
+ fileUniqueId: z.ZodString;
286
+ fileSize: z.ZodOptional<z.ZodNumber>;
287
+ width: z.ZodNumber;
288
+ height: z.ZodNumber;
289
+ }, z.core.$strip>>;
290
+ }, z.core.$strip>], "kind">;
291
+ type TelegramAttachment = z.infer<typeof telegramAttachmentSchema>;
22
292
  declare const telegramMessageEntitySchema: z.ZodObject<{
23
293
  type: z.ZodString;
24
294
  offset: z.ZodNumber;
25
295
  length: z.ZodNumber;
26
- }, z.core.$loose>;
296
+ }, z.core.$strip>;
27
297
  type TelegramMessageEntity = z.infer<typeof telegramMessageEntitySchema>;
28
298
  declare const telegramUserSchema: z.ZodObject<{
29
299
  id: z.ZodNumber;
30
- is_bot: z.ZodOptional<z.ZodBoolean>;
31
- first_name: z.ZodString;
32
- last_name: z.ZodOptional<z.ZodString>;
300
+ isBot: z.ZodBoolean;
301
+ firstName: z.ZodString;
302
+ lastName: z.ZodOptional<z.ZodString>;
33
303
  username: z.ZodOptional<z.ZodString>;
34
- language_code: z.ZodOptional<z.ZodString>;
35
- }, z.core.$loose>;
304
+ languageCode: z.ZodOptional<z.ZodString>;
305
+ }, z.core.$strip>;
36
306
  type TelegramUser = z.infer<typeof telegramUserSchema>;
37
307
  declare const telegramChatSchema: z.ZodObject<{
38
308
  id: z.ZodNumber;
@@ -44,30 +314,39 @@ declare const telegramChatSchema: z.ZodObject<{
44
314
  }>;
45
315
  title: z.ZodOptional<z.ZodString>;
46
316
  username: z.ZodOptional<z.ZodString>;
47
- is_forum: z.ZodOptional<z.ZodBoolean>;
48
- }, z.core.$loose>;
317
+ firstName: z.ZodOptional<z.ZodString>;
318
+ lastName: z.ZodOptional<z.ZodString>;
319
+ isForum: z.ZodOptional<z.ZodBoolean>;
320
+ }, z.core.$strip>;
49
321
  type TelegramChat = z.infer<typeof telegramChatSchema>;
50
322
  interface TelegramMessage {
51
- message_id: number;
323
+ messageId: number;
52
324
  date: number;
53
- edit_date?: number;
325
+ editDate?: number;
54
326
  text?: string;
55
327
  from?: TelegramUser;
56
- sender_chat?: TelegramChat;
328
+ senderChat?: TelegramChat;
57
329
  chat: TelegramChat;
58
- reply_to_message?: TelegramMessage;
59
- new_chat_members?: TelegramUser[];
60
- left_chat_member?: TelegramUser;
330
+ replyToMessage?: TelegramMessage;
331
+ newChatMembers?: TelegramUser[];
332
+ leftChatMember?: TelegramUser;
61
333
  entities?: TelegramMessageEntity[];
62
- [key: string]: unknown;
334
+ mediaGroupId?: string;
335
+ photo?: TelegramPhotoSize[];
336
+ voice?: TelegramVoice;
337
+ audio?: TelegramAudio;
338
+ document?: TelegramDocument;
339
+ video?: TelegramVideo;
340
+ videoNote?: TelegramVideoNote;
341
+ sticker?: TelegramSticker;
342
+ animation?: TelegramAnimation;
343
+ }
344
+ interface TelegramUpdate {
345
+ updateId: number;
346
+ message?: TelegramMessage;
347
+ editedMessage?: TelegramMessage;
348
+ channelPost?: TelegramMessage;
63
349
  }
64
- declare const telegramUpdateSchema: z.ZodObject<{
65
- update_id: z.ZodNumber;
66
- message: z.ZodOptional<z.ZodType<TelegramMessage, unknown, z.core.$ZodTypeInternals<TelegramMessage, unknown>>>;
67
- edited_message: z.ZodOptional<z.ZodType<TelegramMessage, unknown, z.core.$ZodTypeInternals<TelegramMessage, unknown>>>;
68
- channel_post: z.ZodOptional<z.ZodType<TelegramMessage, unknown, z.core.$ZodTypeInternals<TelegramMessage, unknown>>>;
69
- }, z.core.$loose>;
70
- type TelegramUpdate = z.infer<typeof telegramUpdateSchema>;
71
350
  type TelegramUpdateType = "message" | "edited_message" | "channel_post";
72
351
  declare const telegramCommandBindingSchema: z.ZodObject<{
73
352
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -77,7 +356,7 @@ declare const telegramCommandBindingSchema: z.ZodObject<{
77
356
  supergroup: "supergroup";
78
357
  channel: "channel";
79
358
  }>>>;
80
- }, z.core.$loose>;
359
+ }, z.core.$strip>;
81
360
  type TelegramCommandBinding = z.infer<typeof telegramCommandBindingSchema>;
82
361
  declare const telegramCommandBindingsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
83
362
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -87,7 +366,7 @@ declare const telegramCommandBindingsSchema: z.ZodRecord<z.ZodString, z.ZodObjec
87
366
  supergroup: "supergroup";
88
367
  channel: "channel";
89
368
  }>>>;
90
- }, z.core.$loose>>;
369
+ }, z.core.$strip>>;
91
370
  type TelegramCommandBindings = z.infer<typeof telegramCommandBindingsSchema>;
92
371
  interface TelegramUserSummary {
93
372
  id: string;
@@ -128,6 +407,7 @@ interface TelegramMessageSummary {
128
407
  replyToMessageId: string | null;
129
408
  messageType: TelegramUpdateType;
130
409
  text: string | null;
410
+ attachments: TelegramAttachment[];
131
411
  payload: unknown | null;
132
412
  sentAt: Date;
133
413
  editedAt: Date | null;
@@ -141,6 +421,7 @@ interface TelegramMessageHookPayload {
141
421
  chatId: string;
142
422
  fromUserId: string | null;
143
423
  text: string | null;
424
+ attachments: TelegramAttachment[];
144
425
  commandName: string | null;
145
426
  sentAt: Date;
146
427
  editedAt: Date | null;
@@ -188,7 +469,7 @@ type TelegramApiResult<T> = {
188
469
  result: T;
189
470
  } | {
190
471
  ok: false;
191
- error_code?: number;
472
+ errorCode?: number;
192
473
  description?: string;
193
474
  };
194
475
  interface TelegramApi {
@@ -202,7 +483,7 @@ type TelegramQueuedResult = {
202
483
  queued: true;
203
484
  } | {
204
485
  ok: false;
205
- error_code?: number;
486
+ errorCode?: number;
206
487
  description?: string;
207
488
  };
208
489
  type TelegramCommandApiResult<T> = TelegramApiResult<T> | TelegramQueuedResult;
@@ -620,15 +901,10 @@ declare const telegramRoutesFactory: _fragno_dev_core0.RouteFactory<TelegramFrag
620
901
  updatedAt: Date;
621
902
  } | null;
622
903
  } | null]>;
623
- }>, {}, readonly [_fragno_dev_core0.FragnoRouteConfig<"POST", "/telegram/webhook", z.ZodObject<{
624
- update_id: z.ZodNumber;
625
- message: z.ZodOptional<z.ZodType<TelegramMessage, unknown, z.core.$ZodTypeInternals<TelegramMessage, unknown>>>;
626
- edited_message: z.ZodOptional<z.ZodType<TelegramMessage, unknown, z.core.$ZodTypeInternals<TelegramMessage, unknown>>>;
627
- channel_post: z.ZodOptional<z.ZodType<TelegramMessage, unknown, z.core.$ZodTypeInternals<TelegramMessage, unknown>>>;
628
- }, z.core.$loose>, z.ZodObject<{
904
+ }>, {}, readonly [_fragno_dev_core0.FragnoRouteConfig<"POST", "/telegram/webhook", z.ZodUnknown, z.ZodObject<{
629
905
  ok: z.ZodBoolean;
630
906
  duplicate: z.ZodOptional<z.ZodBoolean>;
631
- }, z.core.$strip>, "UNAUTHORIZED", string, _fragno_dev_db0.DatabaseRequestContext<TelegramHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/commands/bind", z.ZodObject<{
907
+ }, z.core.$strip>, "UNAUTHORIZED" | "INVALID_UPDATE", string, _fragno_dev_db0.DatabaseRequestContext<TelegramHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/commands/bind", z.ZodObject<{
632
908
  chatId: z.ZodString;
633
909
  commandName: z.ZodString;
634
910
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -694,7 +970,7 @@ declare const telegramRoutesFactory: _fragno_dev_core0.RouteFactory<TelegramFrag
694
970
  supergroup: "supergroup";
695
971
  channel: "channel";
696
972
  }>>>;
697
- }, z.core.$loose>>>;
973
+ }, z.core.$strip>>>;
698
974
  createdAt: z.ZodDate;
699
975
  updatedAt: z.ZodDate;
700
976
  }, z.core.$strip>>, string, "type", _fragno_dev_db0.DatabaseRequestContext<TelegramHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/chats/:chatId", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, z.ZodObject<{
@@ -717,7 +993,7 @@ declare const telegramRoutesFactory: _fragno_dev_core0.RouteFactory<TelegramFrag
717
993
  supergroup: "supergroup";
718
994
  channel: "channel";
719
995
  }>>>;
720
- }, z.core.$loose>>>;
996
+ }, z.core.$strip>>>;
721
997
  createdAt: z.ZodDate;
722
998
  updatedAt: z.ZodDate;
723
999
  }, z.core.$strip>;
@@ -754,6 +1030,132 @@ declare const telegramRoutesFactory: _fragno_dev_core0.RouteFactory<TelegramFrag
754
1030
  channel_post: "channel_post";
755
1031
  }>;
756
1032
  text: z.ZodNullable<z.ZodString>;
1033
+ attachments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1034
+ kind: z.ZodLiteral<"photo">;
1035
+ fileId: z.ZodString;
1036
+ fileUniqueId: z.ZodString;
1037
+ fileSize: z.ZodOptional<z.ZodNumber>;
1038
+ width: z.ZodNumber;
1039
+ height: z.ZodNumber;
1040
+ thumbnail: z.ZodOptional<z.ZodObject<{
1041
+ fileId: z.ZodString;
1042
+ fileUniqueId: z.ZodString;
1043
+ fileSize: z.ZodOptional<z.ZodNumber>;
1044
+ width: z.ZodNumber;
1045
+ height: z.ZodNumber;
1046
+ }, z.core.$strip>>;
1047
+ sizes: z.ZodArray<z.ZodObject<{
1048
+ fileId: z.ZodString;
1049
+ fileUniqueId: z.ZodString;
1050
+ fileSize: z.ZodOptional<z.ZodNumber>;
1051
+ width: z.ZodNumber;
1052
+ height: z.ZodNumber;
1053
+ }, z.core.$strip>>;
1054
+ }, z.core.$strip>, z.ZodObject<{
1055
+ kind: z.ZodLiteral<"voice">;
1056
+ fileId: z.ZodString;
1057
+ fileUniqueId: z.ZodString;
1058
+ fileSize: z.ZodOptional<z.ZodNumber>;
1059
+ duration: z.ZodNumber;
1060
+ mimeType: z.ZodOptional<z.ZodString>;
1061
+ }, z.core.$strip>, z.ZodObject<{
1062
+ kind: z.ZodLiteral<"audio">;
1063
+ fileId: z.ZodString;
1064
+ fileUniqueId: z.ZodString;
1065
+ fileSize: z.ZodOptional<z.ZodNumber>;
1066
+ duration: z.ZodNumber;
1067
+ performer: z.ZodOptional<z.ZodString>;
1068
+ title: z.ZodOptional<z.ZodString>;
1069
+ fileName: z.ZodOptional<z.ZodString>;
1070
+ mimeType: z.ZodOptional<z.ZodString>;
1071
+ thumbnail: z.ZodOptional<z.ZodObject<{
1072
+ fileId: z.ZodString;
1073
+ fileUniqueId: z.ZodString;
1074
+ fileSize: z.ZodOptional<z.ZodNumber>;
1075
+ width: z.ZodNumber;
1076
+ height: z.ZodNumber;
1077
+ }, z.core.$strip>>;
1078
+ }, z.core.$strip>, z.ZodObject<{
1079
+ kind: z.ZodLiteral<"document">;
1080
+ fileId: z.ZodString;
1081
+ fileUniqueId: z.ZodString;
1082
+ fileSize: z.ZodOptional<z.ZodNumber>;
1083
+ fileName: z.ZodOptional<z.ZodString>;
1084
+ mimeType: z.ZodOptional<z.ZodString>;
1085
+ thumbnail: z.ZodOptional<z.ZodObject<{
1086
+ fileId: z.ZodString;
1087
+ fileUniqueId: z.ZodString;
1088
+ fileSize: z.ZodOptional<z.ZodNumber>;
1089
+ width: z.ZodNumber;
1090
+ height: z.ZodNumber;
1091
+ }, z.core.$strip>>;
1092
+ }, z.core.$strip>, z.ZodObject<{
1093
+ kind: z.ZodLiteral<"video">;
1094
+ fileId: z.ZodString;
1095
+ fileUniqueId: z.ZodString;
1096
+ fileSize: z.ZodOptional<z.ZodNumber>;
1097
+ width: z.ZodNumber;
1098
+ height: z.ZodNumber;
1099
+ duration: z.ZodNumber;
1100
+ fileName: z.ZodOptional<z.ZodString>;
1101
+ mimeType: z.ZodOptional<z.ZodString>;
1102
+ thumbnail: z.ZodOptional<z.ZodObject<{
1103
+ fileId: z.ZodString;
1104
+ fileUniqueId: z.ZodString;
1105
+ fileSize: z.ZodOptional<z.ZodNumber>;
1106
+ width: z.ZodNumber;
1107
+ height: z.ZodNumber;
1108
+ }, z.core.$strip>>;
1109
+ }, z.core.$strip>, z.ZodObject<{
1110
+ kind: z.ZodLiteral<"video_note">;
1111
+ fileId: z.ZodString;
1112
+ fileUniqueId: z.ZodString;
1113
+ fileSize: z.ZodOptional<z.ZodNumber>;
1114
+ length: z.ZodNumber;
1115
+ duration: z.ZodNumber;
1116
+ thumbnail: z.ZodOptional<z.ZodObject<{
1117
+ fileId: z.ZodString;
1118
+ fileUniqueId: z.ZodString;
1119
+ fileSize: z.ZodOptional<z.ZodNumber>;
1120
+ width: z.ZodNumber;
1121
+ height: z.ZodNumber;
1122
+ }, z.core.$strip>>;
1123
+ }, z.core.$strip>, z.ZodObject<{
1124
+ kind: z.ZodLiteral<"sticker">;
1125
+ fileId: z.ZodString;
1126
+ fileUniqueId: z.ZodString;
1127
+ fileSize: z.ZodOptional<z.ZodNumber>;
1128
+ width: z.ZodNumber;
1129
+ height: z.ZodNumber;
1130
+ emoji: z.ZodOptional<z.ZodString>;
1131
+ setName: z.ZodOptional<z.ZodString>;
1132
+ isAnimated: z.ZodBoolean;
1133
+ isVideo: z.ZodBoolean;
1134
+ thumbnail: z.ZodOptional<z.ZodObject<{
1135
+ fileId: z.ZodString;
1136
+ fileUniqueId: z.ZodString;
1137
+ fileSize: z.ZodOptional<z.ZodNumber>;
1138
+ width: z.ZodNumber;
1139
+ height: z.ZodNumber;
1140
+ }, z.core.$strip>>;
1141
+ }, z.core.$strip>, z.ZodObject<{
1142
+ kind: z.ZodLiteral<"animation">;
1143
+ fileId: z.ZodString;
1144
+ fileUniqueId: z.ZodString;
1145
+ fileSize: z.ZodOptional<z.ZodNumber>;
1146
+ width: z.ZodNumber;
1147
+ height: z.ZodNumber;
1148
+ duration: z.ZodNumber;
1149
+ fileName: z.ZodOptional<z.ZodString>;
1150
+ mimeType: z.ZodOptional<z.ZodString>;
1151
+ thumbnail: z.ZodOptional<z.ZodObject<{
1152
+ fileId: z.ZodString;
1153
+ fileUniqueId: z.ZodString;
1154
+ fileSize: z.ZodOptional<z.ZodNumber>;
1155
+ width: z.ZodNumber;
1156
+ height: z.ZodNumber;
1157
+ }, z.core.$strip>>;
1158
+ }, z.core.$strip>], "kind">>;
757
1159
  payload: z.ZodNullable<z.ZodUnknown>;
758
1160
  sentAt: z.ZodDate;
759
1161
  editedAt: z.ZodNullable<z.ZodDate>;
@@ -821,15 +1223,10 @@ declare const telegramSchema: _fragno_dev_db_schema0.Schema<{
821
1223
  }>;
822
1224
  //#endregion
823
1225
  //#region src/index.d.ts
824
- declare function createTelegramFragment(config: TelegramFragmentConfig, fragnoConfig: FragnoPublicConfigWithDatabase): _fragno_dev_core0.FragnoInstantiatedFragment<readonly [_fragno_dev_core0.FragnoRouteConfig<"POST", "/telegram/webhook", zod.ZodObject<{
825
- update_id: zod.ZodNumber;
826
- message: zod.ZodOptional<zod.ZodType<TelegramMessage, unknown, zod_v4_core0.$ZodTypeInternals<TelegramMessage, unknown>>>;
827
- edited_message: zod.ZodOptional<zod.ZodType<TelegramMessage, unknown, zod_v4_core0.$ZodTypeInternals<TelegramMessage, unknown>>>;
828
- channel_post: zod.ZodOptional<zod.ZodType<TelegramMessage, unknown, zod_v4_core0.$ZodTypeInternals<TelegramMessage, unknown>>>;
829
- }, zod_v4_core0.$loose>, zod.ZodObject<{
1226
+ declare function createTelegramFragment(config: TelegramFragmentConfig, fragnoConfig: FragnoPublicConfigWithDatabase): _fragno_dev_core0.FragnoInstantiatedFragment<readonly [_fragno_dev_core0.FragnoRouteConfig<"POST", "/telegram/webhook", zod.ZodUnknown, zod.ZodObject<{
830
1227
  ok: zod.ZodBoolean;
831
1228
  duplicate: zod.ZodOptional<zod.ZodBoolean>;
832
- }, zod_v4_core0.$strip>, "UNAUTHORIZED", string, _fragno_dev_db0.DatabaseRequestContext<TelegramHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/commands/bind", zod.ZodObject<{
1229
+ }, zod_v4_core0.$strip>, "UNAUTHORIZED" | "INVALID_UPDATE", string, _fragno_dev_db0.DatabaseRequestContext<TelegramHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/commands/bind", zod.ZodObject<{
833
1230
  chatId: zod.ZodString;
834
1231
  commandName: zod.ZodString;
835
1232
  enabled: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
@@ -895,7 +1292,7 @@ declare function createTelegramFragment(config: TelegramFragmentConfig, fragnoCo
895
1292
  supergroup: "supergroup";
896
1293
  channel: "channel";
897
1294
  }>>>;
898
- }, zod_v4_core0.$loose>>>;
1295
+ }, zod_v4_core0.$strip>>>;
899
1296
  createdAt: zod.ZodDate;
900
1297
  updatedAt: zod.ZodDate;
901
1298
  }, zod_v4_core0.$strip>>, string, "type", _fragno_dev_db0.DatabaseRequestContext<TelegramHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/chats/:chatId", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
@@ -918,7 +1315,7 @@ declare function createTelegramFragment(config: TelegramFragmentConfig, fragnoCo
918
1315
  supergroup: "supergroup";
919
1316
  channel: "channel";
920
1317
  }>>>;
921
- }, zod_v4_core0.$loose>>>;
1318
+ }, zod_v4_core0.$strip>>>;
922
1319
  createdAt: zod.ZodDate;
923
1320
  updatedAt: zod.ZodDate;
924
1321
  }, zod_v4_core0.$strip>;
@@ -955,6 +1352,132 @@ declare function createTelegramFragment(config: TelegramFragmentConfig, fragnoCo
955
1352
  channel_post: "channel_post";
956
1353
  }>;
957
1354
  text: zod.ZodNullable<zod.ZodString>;
1355
+ attachments: zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
1356
+ kind: zod.ZodLiteral<"photo">;
1357
+ fileId: zod.ZodString;
1358
+ fileUniqueId: zod.ZodString;
1359
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1360
+ width: zod.ZodNumber;
1361
+ height: zod.ZodNumber;
1362
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1363
+ fileId: zod.ZodString;
1364
+ fileUniqueId: zod.ZodString;
1365
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1366
+ width: zod.ZodNumber;
1367
+ height: zod.ZodNumber;
1368
+ }, zod_v4_core0.$strip>>;
1369
+ sizes: zod.ZodArray<zod.ZodObject<{
1370
+ fileId: zod.ZodString;
1371
+ fileUniqueId: zod.ZodString;
1372
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1373
+ width: zod.ZodNumber;
1374
+ height: zod.ZodNumber;
1375
+ }, zod_v4_core0.$strip>>;
1376
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1377
+ kind: zod.ZodLiteral<"voice">;
1378
+ fileId: zod.ZodString;
1379
+ fileUniqueId: zod.ZodString;
1380
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1381
+ duration: zod.ZodNumber;
1382
+ mimeType: zod.ZodOptional<zod.ZodString>;
1383
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1384
+ kind: zod.ZodLiteral<"audio">;
1385
+ fileId: zod.ZodString;
1386
+ fileUniqueId: zod.ZodString;
1387
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1388
+ duration: zod.ZodNumber;
1389
+ performer: zod.ZodOptional<zod.ZodString>;
1390
+ title: zod.ZodOptional<zod.ZodString>;
1391
+ fileName: zod.ZodOptional<zod.ZodString>;
1392
+ mimeType: zod.ZodOptional<zod.ZodString>;
1393
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1394
+ fileId: zod.ZodString;
1395
+ fileUniqueId: zod.ZodString;
1396
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1397
+ width: zod.ZodNumber;
1398
+ height: zod.ZodNumber;
1399
+ }, zod_v4_core0.$strip>>;
1400
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1401
+ kind: zod.ZodLiteral<"document">;
1402
+ fileId: zod.ZodString;
1403
+ fileUniqueId: zod.ZodString;
1404
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1405
+ fileName: zod.ZodOptional<zod.ZodString>;
1406
+ mimeType: zod.ZodOptional<zod.ZodString>;
1407
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1408
+ fileId: zod.ZodString;
1409
+ fileUniqueId: zod.ZodString;
1410
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1411
+ width: zod.ZodNumber;
1412
+ height: zod.ZodNumber;
1413
+ }, zod_v4_core0.$strip>>;
1414
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1415
+ kind: zod.ZodLiteral<"video">;
1416
+ fileId: zod.ZodString;
1417
+ fileUniqueId: zod.ZodString;
1418
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1419
+ width: zod.ZodNumber;
1420
+ height: zod.ZodNumber;
1421
+ duration: zod.ZodNumber;
1422
+ fileName: zod.ZodOptional<zod.ZodString>;
1423
+ mimeType: zod.ZodOptional<zod.ZodString>;
1424
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1425
+ fileId: zod.ZodString;
1426
+ fileUniqueId: zod.ZodString;
1427
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1428
+ width: zod.ZodNumber;
1429
+ height: zod.ZodNumber;
1430
+ }, zod_v4_core0.$strip>>;
1431
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1432
+ kind: zod.ZodLiteral<"video_note">;
1433
+ fileId: zod.ZodString;
1434
+ fileUniqueId: zod.ZodString;
1435
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1436
+ length: zod.ZodNumber;
1437
+ duration: zod.ZodNumber;
1438
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1439
+ fileId: zod.ZodString;
1440
+ fileUniqueId: zod.ZodString;
1441
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1442
+ width: zod.ZodNumber;
1443
+ height: zod.ZodNumber;
1444
+ }, zod_v4_core0.$strip>>;
1445
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1446
+ kind: zod.ZodLiteral<"sticker">;
1447
+ fileId: zod.ZodString;
1448
+ fileUniqueId: zod.ZodString;
1449
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1450
+ width: zod.ZodNumber;
1451
+ height: zod.ZodNumber;
1452
+ emoji: zod.ZodOptional<zod.ZodString>;
1453
+ setName: zod.ZodOptional<zod.ZodString>;
1454
+ isAnimated: zod.ZodBoolean;
1455
+ isVideo: zod.ZodBoolean;
1456
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1457
+ fileId: zod.ZodString;
1458
+ fileUniqueId: zod.ZodString;
1459
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1460
+ width: zod.ZodNumber;
1461
+ height: zod.ZodNumber;
1462
+ }, zod_v4_core0.$strip>>;
1463
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1464
+ kind: zod.ZodLiteral<"animation">;
1465
+ fileId: zod.ZodString;
1466
+ fileUniqueId: zod.ZodString;
1467
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1468
+ width: zod.ZodNumber;
1469
+ height: zod.ZodNumber;
1470
+ duration: zod.ZodNumber;
1471
+ fileName: zod.ZodOptional<zod.ZodString>;
1472
+ mimeType: zod.ZodOptional<zod.ZodString>;
1473
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1474
+ fileId: zod.ZodString;
1475
+ fileUniqueId: zod.ZodString;
1476
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1477
+ width: zod.ZodNumber;
1478
+ height: zod.ZodNumber;
1479
+ }, zod_v4_core0.$strip>>;
1480
+ }, zod_v4_core0.$strip>], "kind">>;
958
1481
  payload: zod.ZodNullable<zod.ZodUnknown>;
959
1482
  sentAt: zod.ZodDate;
960
1483
  editedAt: zod.ZodNullable<zod.ZodDate>;
@@ -1264,7 +1787,7 @@ declare function createTelegramFragmentClients(fragnoConfig?: FragnoPublicClient
1264
1787
  supergroup: "supergroup";
1265
1788
  channel: "channel";
1266
1789
  }>>>;
1267
- }, zod_v4_core0.$loose>>>;
1790
+ }, zod_v4_core0.$strip>>>;
1268
1791
  createdAt: zod.ZodDate;
1269
1792
  updatedAt: zod.ZodDate;
1270
1793
  }, zod_v4_core0.$strip>>, string, "type">;
@@ -1288,7 +1811,7 @@ declare function createTelegramFragmentClients(fragnoConfig?: FragnoPublicClient
1288
1811
  supergroup: "supergroup";
1289
1812
  channel: "channel";
1290
1813
  }>>>;
1291
- }, zod_v4_core0.$loose>>>;
1814
+ }, zod_v4_core0.$strip>>>;
1292
1815
  createdAt: zod.ZodDate;
1293
1816
  updatedAt: zod.ZodDate;
1294
1817
  }, zod_v4_core0.$strip>;
@@ -1326,6 +1849,132 @@ declare function createTelegramFragmentClients(fragnoConfig?: FragnoPublicClient
1326
1849
  channel_post: "channel_post";
1327
1850
  }>;
1328
1851
  text: zod.ZodNullable<zod.ZodString>;
1852
+ attachments: zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
1853
+ kind: zod.ZodLiteral<"photo">;
1854
+ fileId: zod.ZodString;
1855
+ fileUniqueId: zod.ZodString;
1856
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1857
+ width: zod.ZodNumber;
1858
+ height: zod.ZodNumber;
1859
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1860
+ fileId: zod.ZodString;
1861
+ fileUniqueId: zod.ZodString;
1862
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1863
+ width: zod.ZodNumber;
1864
+ height: zod.ZodNumber;
1865
+ }, zod_v4_core0.$strip>>;
1866
+ sizes: zod.ZodArray<zod.ZodObject<{
1867
+ fileId: zod.ZodString;
1868
+ fileUniqueId: zod.ZodString;
1869
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1870
+ width: zod.ZodNumber;
1871
+ height: zod.ZodNumber;
1872
+ }, zod_v4_core0.$strip>>;
1873
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1874
+ kind: zod.ZodLiteral<"voice">;
1875
+ fileId: zod.ZodString;
1876
+ fileUniqueId: zod.ZodString;
1877
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1878
+ duration: zod.ZodNumber;
1879
+ mimeType: zod.ZodOptional<zod.ZodString>;
1880
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1881
+ kind: zod.ZodLiteral<"audio">;
1882
+ fileId: zod.ZodString;
1883
+ fileUniqueId: zod.ZodString;
1884
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1885
+ duration: zod.ZodNumber;
1886
+ performer: zod.ZodOptional<zod.ZodString>;
1887
+ title: zod.ZodOptional<zod.ZodString>;
1888
+ fileName: zod.ZodOptional<zod.ZodString>;
1889
+ mimeType: zod.ZodOptional<zod.ZodString>;
1890
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1891
+ fileId: zod.ZodString;
1892
+ fileUniqueId: zod.ZodString;
1893
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1894
+ width: zod.ZodNumber;
1895
+ height: zod.ZodNumber;
1896
+ }, zod_v4_core0.$strip>>;
1897
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1898
+ kind: zod.ZodLiteral<"document">;
1899
+ fileId: zod.ZodString;
1900
+ fileUniqueId: zod.ZodString;
1901
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1902
+ fileName: zod.ZodOptional<zod.ZodString>;
1903
+ mimeType: zod.ZodOptional<zod.ZodString>;
1904
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1905
+ fileId: zod.ZodString;
1906
+ fileUniqueId: zod.ZodString;
1907
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1908
+ width: zod.ZodNumber;
1909
+ height: zod.ZodNumber;
1910
+ }, zod_v4_core0.$strip>>;
1911
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1912
+ kind: zod.ZodLiteral<"video">;
1913
+ fileId: zod.ZodString;
1914
+ fileUniqueId: zod.ZodString;
1915
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1916
+ width: zod.ZodNumber;
1917
+ height: zod.ZodNumber;
1918
+ duration: zod.ZodNumber;
1919
+ fileName: zod.ZodOptional<zod.ZodString>;
1920
+ mimeType: zod.ZodOptional<zod.ZodString>;
1921
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1922
+ fileId: zod.ZodString;
1923
+ fileUniqueId: zod.ZodString;
1924
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1925
+ width: zod.ZodNumber;
1926
+ height: zod.ZodNumber;
1927
+ }, zod_v4_core0.$strip>>;
1928
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1929
+ kind: zod.ZodLiteral<"video_note">;
1930
+ fileId: zod.ZodString;
1931
+ fileUniqueId: zod.ZodString;
1932
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1933
+ length: zod.ZodNumber;
1934
+ duration: zod.ZodNumber;
1935
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1936
+ fileId: zod.ZodString;
1937
+ fileUniqueId: zod.ZodString;
1938
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1939
+ width: zod.ZodNumber;
1940
+ height: zod.ZodNumber;
1941
+ }, zod_v4_core0.$strip>>;
1942
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1943
+ kind: zod.ZodLiteral<"sticker">;
1944
+ fileId: zod.ZodString;
1945
+ fileUniqueId: zod.ZodString;
1946
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1947
+ width: zod.ZodNumber;
1948
+ height: zod.ZodNumber;
1949
+ emoji: zod.ZodOptional<zod.ZodString>;
1950
+ setName: zod.ZodOptional<zod.ZodString>;
1951
+ isAnimated: zod.ZodBoolean;
1952
+ isVideo: zod.ZodBoolean;
1953
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1954
+ fileId: zod.ZodString;
1955
+ fileUniqueId: zod.ZodString;
1956
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1957
+ width: zod.ZodNumber;
1958
+ height: zod.ZodNumber;
1959
+ }, zod_v4_core0.$strip>>;
1960
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1961
+ kind: zod.ZodLiteral<"animation">;
1962
+ fileId: zod.ZodString;
1963
+ fileUniqueId: zod.ZodString;
1964
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1965
+ width: zod.ZodNumber;
1966
+ height: zod.ZodNumber;
1967
+ duration: zod.ZodNumber;
1968
+ fileName: zod.ZodOptional<zod.ZodString>;
1969
+ mimeType: zod.ZodOptional<zod.ZodString>;
1970
+ thumbnail: zod.ZodOptional<zod.ZodObject<{
1971
+ fileId: zod.ZodString;
1972
+ fileUniqueId: zod.ZodString;
1973
+ fileSize: zod.ZodOptional<zod.ZodNumber>;
1974
+ width: zod.ZodNumber;
1975
+ height: zod.ZodNumber;
1976
+ }, zod_v4_core0.$strip>>;
1977
+ }, zod_v4_core0.$strip>], "kind">>;
1329
1978
  payload: zod.ZodNullable<zod.ZodUnknown>;
1330
1979
  sentAt: zod.ZodDate;
1331
1980
  editedAt: zod.ZodNullable<zod.ZodDate>;
@@ -1388,5 +2037,5 @@ declare function createTelegramFragmentClients(fragnoConfig?: FragnoPublicClient
1388
2037
  }, zod_v4_core0.$strip> | undefined, "INVALID_MESSAGE_ID", string>;
1389
2038
  };
1390
2039
  //#endregion
1391
- export { type FragnoRouteConfig, type TelegramApi, type TelegramApiResult, type TelegramChatMemberHookPayload, type TelegramChatMemberSummary, type TelegramChatSummary, type TelegramChatType, type TelegramCommandApi, type TelegramCommandApiResult, type TelegramCommandBinding, type TelegramCommandBindings, type TelegramCommandContext, type TelegramCommandDefinition, type TelegramCommandRegistry, type TelegramCommandScope, type TelegramConfigBuilder, type TelegramFragmentConfig, type TelegramHooks, type TelegramMessage, type TelegramMessageHookPayload, type TelegramMessageSummary, type TelegramQueuedResult, type TelegramUpdate, type TelegramUpdateType, type TelegramUser, type TelegramUserSummary, createTelegram, createTelegramFragment, createTelegramFragmentClients, defineCommand, telegramFragmentDefinition, telegramRoutesFactory, telegramSchema };
2040
+ export { type FragnoRouteConfig, type TelegramApi, type TelegramApiResult, type TelegramAttachment, type TelegramAttachmentKind, type TelegramAttachmentPhotoSize, type TelegramChatMemberHookPayload, type TelegramChatMemberSummary, type TelegramChatSummary, type TelegramChatType, type TelegramCommandApi, type TelegramCommandApiResult, type TelegramCommandBinding, type TelegramCommandBindings, type TelegramCommandContext, type TelegramCommandDefinition, type TelegramCommandRegistry, type TelegramCommandScope, type TelegramConfigBuilder, type TelegramFragmentConfig, type TelegramHooks, type TelegramMessage, type TelegramMessageHookPayload, type TelegramMessageSummary, type TelegramQueuedResult, type TelegramUpdate, type TelegramUpdateType, type TelegramUser, type TelegramUserSummary, createTelegram, createTelegramFragment, createTelegramFragmentClients, defineCommand, telegramAttachmentKindSchema, telegramAttachmentSchema, telegramFragmentDefinition, telegramRoutesFactory, telegramSchema };
1392
2041
  //# sourceMappingURL=index.d.ts.map