@frogbotai/piece-telegram-bot 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1274 @@
1
+ import type { PieceActionDefinition, PieceRunArgs } from 'frogbot/pieces';
2
+ import { z } from 'zod';
3
+ import type { TelegramBotClient } from '../client.js';
4
+ type Input = Record<string, unknown>;
5
+ export declare const sendTextMessage: PieceActionDefinition<z.ZodObject<{
6
+ replyToMessageId: z.ZodOptional<z.ZodNumber>;
7
+ replyMarkup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
8
+ messageThreadId: z.ZodOptional<z.ZodNumber>;
9
+ disableNotification: z.ZodDefault<z.ZodBoolean>;
10
+ protectContent: z.ZodDefault<z.ZodBoolean>;
11
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
12
+ message: z.ZodString;
13
+ parseMode: z.ZodDefault<z.ZodEnum<{
14
+ MarkdownV2: "MarkdownV2";
15
+ HTML: "HTML";
16
+ None: "None";
17
+ }>>;
18
+ disableWebPagePreview: z.ZodDefault<z.ZodBoolean>;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ ok: z.ZodLiteral<true>;
21
+ result: z.ZodOptional<z.ZodUnknown>;
22
+ }, z.core.$loose>, object, {
23
+ fileUrl(path: string): string;
24
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
25
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
26
+ downloadFile(path: string): Promise<string>;
27
+ }>;
28
+ export declare const sendMedia: {
29
+ run({ client, input, req }: PieceRunArgs<Input, object, TelegramBotClient>): Promise<{
30
+ [x: string]: unknown;
31
+ ok: true;
32
+ result?: unknown;
33
+ }>;
34
+ slug: string;
35
+ label?: string;
36
+ description: string;
37
+ input: z.ZodObject<{
38
+ replyToMessageId: z.ZodOptional<z.ZodNumber>;
39
+ replyMarkup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
40
+ messageThreadId: z.ZodOptional<z.ZodNumber>;
41
+ disableNotification: z.ZodDefault<z.ZodBoolean>;
42
+ protectContent: z.ZodDefault<z.ZodBoolean>;
43
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
44
+ mediaType: z.ZodEnum<{
45
+ photo: "photo";
46
+ video: "video";
47
+ sticker: "sticker";
48
+ animation: "animation";
49
+ }>;
50
+ media: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
51
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
52
+ name: z.ZodOptional<z.ZodString>;
53
+ }, z.core.$strip>]>;
54
+ message: z.ZodOptional<z.ZodString>;
55
+ parseMode: z.ZodDefault<z.ZodEnum<{
56
+ MarkdownV2: "MarkdownV2";
57
+ HTML: "HTML";
58
+ None: "None";
59
+ }>>;
60
+ }, z.core.$strip>;
61
+ output?: z.ZodObject<{
62
+ ok: z.ZodLiteral<true>;
63
+ result: z.ZodOptional<z.ZodUnknown>;
64
+ }, z.core.$loose> | undefined;
65
+ idempotent?: boolean;
66
+ options?: Partial<{
67
+ disableNotification: (args: {
68
+ input: Partial<{
69
+ disableNotification: boolean;
70
+ protectContent: boolean;
71
+ chatId: string | number;
72
+ mediaType: "photo" | "video" | "sticker" | "animation";
73
+ media: string | {
74
+ fileId: string | number;
75
+ name?: string | undefined;
76
+ };
77
+ parseMode: "MarkdownV2" | "HTML" | "None";
78
+ replyToMessageId?: number | undefined;
79
+ replyMarkup?: Record<string, unknown> | undefined;
80
+ messageThreadId?: number | undefined;
81
+ message?: string | undefined;
82
+ }>;
83
+ client: {
84
+ fileUrl(path: string): string;
85
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
86
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
87
+ downloadFile(path: string): Promise<string>;
88
+ };
89
+ options: object;
90
+ req: import("frogbot").FrogbotRequest;
91
+ }) => Promise<import("frogbot").PieceOption[]>;
92
+ protectContent: (args: {
93
+ input: Partial<{
94
+ disableNotification: boolean;
95
+ protectContent: boolean;
96
+ chatId: string | number;
97
+ mediaType: "photo" | "video" | "sticker" | "animation";
98
+ media: string | {
99
+ fileId: string | number;
100
+ name?: string | undefined;
101
+ };
102
+ parseMode: "MarkdownV2" | "HTML" | "None";
103
+ replyToMessageId?: number | undefined;
104
+ replyMarkup?: Record<string, unknown> | undefined;
105
+ messageThreadId?: number | undefined;
106
+ message?: string | undefined;
107
+ }>;
108
+ client: {
109
+ fileUrl(path: string): string;
110
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
111
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
112
+ downloadFile(path: string): Promise<string>;
113
+ };
114
+ options: object;
115
+ req: import("frogbot").FrogbotRequest;
116
+ }) => Promise<import("frogbot").PieceOption[]>;
117
+ chatId: (args: {
118
+ input: Partial<{
119
+ disableNotification: boolean;
120
+ protectContent: boolean;
121
+ chatId: string | number;
122
+ mediaType: "photo" | "video" | "sticker" | "animation";
123
+ media: string | {
124
+ fileId: string | number;
125
+ name?: string | undefined;
126
+ };
127
+ parseMode: "MarkdownV2" | "HTML" | "None";
128
+ replyToMessageId?: number | undefined;
129
+ replyMarkup?: Record<string, unknown> | undefined;
130
+ messageThreadId?: number | undefined;
131
+ message?: string | undefined;
132
+ }>;
133
+ client: {
134
+ fileUrl(path: string): string;
135
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
136
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
137
+ downloadFile(path: string): Promise<string>;
138
+ };
139
+ options: object;
140
+ req: import("frogbot").FrogbotRequest;
141
+ }) => Promise<import("frogbot").PieceOption[]>;
142
+ mediaType: (args: {
143
+ input: Partial<{
144
+ disableNotification: boolean;
145
+ protectContent: boolean;
146
+ chatId: string | number;
147
+ mediaType: "photo" | "video" | "sticker" | "animation";
148
+ media: string | {
149
+ fileId: string | number;
150
+ name?: string | undefined;
151
+ };
152
+ parseMode: "MarkdownV2" | "HTML" | "None";
153
+ replyToMessageId?: number | undefined;
154
+ replyMarkup?: Record<string, unknown> | undefined;
155
+ messageThreadId?: number | undefined;
156
+ message?: string | undefined;
157
+ }>;
158
+ client: {
159
+ fileUrl(path: string): string;
160
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
161
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
162
+ downloadFile(path: string): Promise<string>;
163
+ };
164
+ options: object;
165
+ req: import("frogbot").FrogbotRequest;
166
+ }) => Promise<import("frogbot").PieceOption[]>;
167
+ media: (args: {
168
+ input: Partial<{
169
+ disableNotification: boolean;
170
+ protectContent: boolean;
171
+ chatId: string | number;
172
+ mediaType: "photo" | "video" | "sticker" | "animation";
173
+ media: string | {
174
+ fileId: string | number;
175
+ name?: string | undefined;
176
+ };
177
+ parseMode: "MarkdownV2" | "HTML" | "None";
178
+ replyToMessageId?: number | undefined;
179
+ replyMarkup?: Record<string, unknown> | undefined;
180
+ messageThreadId?: number | undefined;
181
+ message?: string | undefined;
182
+ }>;
183
+ client: {
184
+ fileUrl(path: string): string;
185
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
186
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
187
+ downloadFile(path: string): Promise<string>;
188
+ };
189
+ options: object;
190
+ req: import("frogbot").FrogbotRequest;
191
+ }) => Promise<import("frogbot").PieceOption[]>;
192
+ parseMode: (args: {
193
+ input: Partial<{
194
+ disableNotification: boolean;
195
+ protectContent: boolean;
196
+ chatId: string | number;
197
+ mediaType: "photo" | "video" | "sticker" | "animation";
198
+ media: string | {
199
+ fileId: string | number;
200
+ name?: string | undefined;
201
+ };
202
+ parseMode: "MarkdownV2" | "HTML" | "None";
203
+ replyToMessageId?: number | undefined;
204
+ replyMarkup?: Record<string, unknown> | undefined;
205
+ messageThreadId?: number | undefined;
206
+ message?: string | undefined;
207
+ }>;
208
+ client: {
209
+ fileUrl(path: string): string;
210
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
211
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
212
+ downloadFile(path: string): Promise<string>;
213
+ };
214
+ options: object;
215
+ req: import("frogbot").FrogbotRequest;
216
+ }) => Promise<import("frogbot").PieceOption[]>;
217
+ replyToMessageId?: ((args: {
218
+ input: Partial<{
219
+ disableNotification: boolean;
220
+ protectContent: boolean;
221
+ chatId: string | number;
222
+ mediaType: "photo" | "video" | "sticker" | "animation";
223
+ media: string | {
224
+ fileId: string | number;
225
+ name?: string | undefined;
226
+ };
227
+ parseMode: "MarkdownV2" | "HTML" | "None";
228
+ replyToMessageId?: number | undefined;
229
+ replyMarkup?: Record<string, unknown> | undefined;
230
+ messageThreadId?: number | undefined;
231
+ message?: string | undefined;
232
+ }>;
233
+ client: {
234
+ fileUrl(path: string): string;
235
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
236
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
237
+ downloadFile(path: string): Promise<string>;
238
+ };
239
+ options: object;
240
+ req: import("frogbot").FrogbotRequest;
241
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
242
+ replyMarkup?: ((args: {
243
+ input: Partial<{
244
+ disableNotification: boolean;
245
+ protectContent: boolean;
246
+ chatId: string | number;
247
+ mediaType: "photo" | "video" | "sticker" | "animation";
248
+ media: string | {
249
+ fileId: string | number;
250
+ name?: string | undefined;
251
+ };
252
+ parseMode: "MarkdownV2" | "HTML" | "None";
253
+ replyToMessageId?: number | undefined;
254
+ replyMarkup?: Record<string, unknown> | undefined;
255
+ messageThreadId?: number | undefined;
256
+ message?: string | undefined;
257
+ }>;
258
+ client: {
259
+ fileUrl(path: string): string;
260
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
261
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
262
+ downloadFile(path: string): Promise<string>;
263
+ };
264
+ options: object;
265
+ req: import("frogbot").FrogbotRequest;
266
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
267
+ messageThreadId?: ((args: {
268
+ input: Partial<{
269
+ disableNotification: boolean;
270
+ protectContent: boolean;
271
+ chatId: string | number;
272
+ mediaType: "photo" | "video" | "sticker" | "animation";
273
+ media: string | {
274
+ fileId: string | number;
275
+ name?: string | undefined;
276
+ };
277
+ parseMode: "MarkdownV2" | "HTML" | "None";
278
+ replyToMessageId?: number | undefined;
279
+ replyMarkup?: Record<string, unknown> | undefined;
280
+ messageThreadId?: number | undefined;
281
+ message?: string | undefined;
282
+ }>;
283
+ client: {
284
+ fileUrl(path: string): string;
285
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
286
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
287
+ downloadFile(path: string): Promise<string>;
288
+ };
289
+ options: object;
290
+ req: import("frogbot").FrogbotRequest;
291
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
292
+ message?: ((args: {
293
+ input: Partial<{
294
+ disableNotification: boolean;
295
+ protectContent: boolean;
296
+ chatId: string | number;
297
+ mediaType: "photo" | "video" | "sticker" | "animation";
298
+ media: string | {
299
+ fileId: string | number;
300
+ name?: string | undefined;
301
+ };
302
+ parseMode: "MarkdownV2" | "HTML" | "None";
303
+ replyToMessageId?: number | undefined;
304
+ replyMarkup?: Record<string, unknown> | undefined;
305
+ messageThreadId?: number | undefined;
306
+ message?: string | undefined;
307
+ }>;
308
+ client: {
309
+ fileUrl(path: string): string;
310
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
311
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
312
+ downloadFile(path: string): Promise<string>;
313
+ };
314
+ options: object;
315
+ req: import("frogbot").FrogbotRequest;
316
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
317
+ }> | undefined;
318
+ };
319
+ export declare const sendDocument: {
320
+ run({ client, input, req }: PieceRunArgs<Input, object, TelegramBotClient>): Promise<{
321
+ [x: string]: unknown;
322
+ ok: true;
323
+ result?: unknown;
324
+ }>;
325
+ slug: string;
326
+ label?: string;
327
+ description: string;
328
+ input: z.ZodObject<{
329
+ replyToMessageId: z.ZodOptional<z.ZodNumber>;
330
+ replyMarkup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
331
+ messageThreadId: z.ZodOptional<z.ZodNumber>;
332
+ disableNotification: z.ZodDefault<z.ZodBoolean>;
333
+ protectContent: z.ZodDefault<z.ZodBoolean>;
334
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
335
+ document: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
336
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
337
+ name: z.ZodOptional<z.ZodString>;
338
+ }, z.core.$strip>]>;
339
+ caption: z.ZodOptional<z.ZodString>;
340
+ parseMode: z.ZodDefault<z.ZodEnum<{
341
+ MarkdownV2: "MarkdownV2";
342
+ HTML: "HTML";
343
+ None: "None";
344
+ }>>;
345
+ }, z.core.$strip>;
346
+ output?: z.ZodObject<{
347
+ ok: z.ZodLiteral<true>;
348
+ result: z.ZodOptional<z.ZodUnknown>;
349
+ }, z.core.$loose> | undefined;
350
+ idempotent?: boolean;
351
+ options?: Partial<{
352
+ disableNotification: (args: {
353
+ input: Partial<{
354
+ disableNotification: boolean;
355
+ protectContent: boolean;
356
+ chatId: string | number;
357
+ document: string | {
358
+ fileId: string | number;
359
+ name?: string | undefined;
360
+ };
361
+ parseMode: "MarkdownV2" | "HTML" | "None";
362
+ replyToMessageId?: number | undefined;
363
+ replyMarkup?: Record<string, unknown> | undefined;
364
+ messageThreadId?: number | undefined;
365
+ caption?: string | undefined;
366
+ }>;
367
+ client: {
368
+ fileUrl(path: string): string;
369
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
370
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
371
+ downloadFile(path: string): Promise<string>;
372
+ };
373
+ options: object;
374
+ req: import("frogbot").FrogbotRequest;
375
+ }) => Promise<import("frogbot").PieceOption[]>;
376
+ protectContent: (args: {
377
+ input: Partial<{
378
+ disableNotification: boolean;
379
+ protectContent: boolean;
380
+ chatId: string | number;
381
+ document: string | {
382
+ fileId: string | number;
383
+ name?: string | undefined;
384
+ };
385
+ parseMode: "MarkdownV2" | "HTML" | "None";
386
+ replyToMessageId?: number | undefined;
387
+ replyMarkup?: Record<string, unknown> | undefined;
388
+ messageThreadId?: number | undefined;
389
+ caption?: string | undefined;
390
+ }>;
391
+ client: {
392
+ fileUrl(path: string): string;
393
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
394
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
395
+ downloadFile(path: string): Promise<string>;
396
+ };
397
+ options: object;
398
+ req: import("frogbot").FrogbotRequest;
399
+ }) => Promise<import("frogbot").PieceOption[]>;
400
+ chatId: (args: {
401
+ input: Partial<{
402
+ disableNotification: boolean;
403
+ protectContent: boolean;
404
+ chatId: string | number;
405
+ document: string | {
406
+ fileId: string | number;
407
+ name?: string | undefined;
408
+ };
409
+ parseMode: "MarkdownV2" | "HTML" | "None";
410
+ replyToMessageId?: number | undefined;
411
+ replyMarkup?: Record<string, unknown> | undefined;
412
+ messageThreadId?: number | undefined;
413
+ caption?: string | undefined;
414
+ }>;
415
+ client: {
416
+ fileUrl(path: string): string;
417
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
418
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
419
+ downloadFile(path: string): Promise<string>;
420
+ };
421
+ options: object;
422
+ req: import("frogbot").FrogbotRequest;
423
+ }) => Promise<import("frogbot").PieceOption[]>;
424
+ document: (args: {
425
+ input: Partial<{
426
+ disableNotification: boolean;
427
+ protectContent: boolean;
428
+ chatId: string | number;
429
+ document: string | {
430
+ fileId: string | number;
431
+ name?: string | undefined;
432
+ };
433
+ parseMode: "MarkdownV2" | "HTML" | "None";
434
+ replyToMessageId?: number | undefined;
435
+ replyMarkup?: Record<string, unknown> | undefined;
436
+ messageThreadId?: number | undefined;
437
+ caption?: string | undefined;
438
+ }>;
439
+ client: {
440
+ fileUrl(path: string): string;
441
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
442
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
443
+ downloadFile(path: string): Promise<string>;
444
+ };
445
+ options: object;
446
+ req: import("frogbot").FrogbotRequest;
447
+ }) => Promise<import("frogbot").PieceOption[]>;
448
+ parseMode: (args: {
449
+ input: Partial<{
450
+ disableNotification: boolean;
451
+ protectContent: boolean;
452
+ chatId: string | number;
453
+ document: string | {
454
+ fileId: string | number;
455
+ name?: string | undefined;
456
+ };
457
+ parseMode: "MarkdownV2" | "HTML" | "None";
458
+ replyToMessageId?: number | undefined;
459
+ replyMarkup?: Record<string, unknown> | undefined;
460
+ messageThreadId?: number | undefined;
461
+ caption?: string | undefined;
462
+ }>;
463
+ client: {
464
+ fileUrl(path: string): string;
465
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
466
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
467
+ downloadFile(path: string): Promise<string>;
468
+ };
469
+ options: object;
470
+ req: import("frogbot").FrogbotRequest;
471
+ }) => Promise<import("frogbot").PieceOption[]>;
472
+ replyToMessageId?: ((args: {
473
+ input: Partial<{
474
+ disableNotification: boolean;
475
+ protectContent: boolean;
476
+ chatId: string | number;
477
+ document: string | {
478
+ fileId: string | number;
479
+ name?: string | undefined;
480
+ };
481
+ parseMode: "MarkdownV2" | "HTML" | "None";
482
+ replyToMessageId?: number | undefined;
483
+ replyMarkup?: Record<string, unknown> | undefined;
484
+ messageThreadId?: number | undefined;
485
+ caption?: string | undefined;
486
+ }>;
487
+ client: {
488
+ fileUrl(path: string): string;
489
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
490
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
491
+ downloadFile(path: string): Promise<string>;
492
+ };
493
+ options: object;
494
+ req: import("frogbot").FrogbotRequest;
495
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
496
+ replyMarkup?: ((args: {
497
+ input: Partial<{
498
+ disableNotification: boolean;
499
+ protectContent: boolean;
500
+ chatId: string | number;
501
+ document: string | {
502
+ fileId: string | number;
503
+ name?: string | undefined;
504
+ };
505
+ parseMode: "MarkdownV2" | "HTML" | "None";
506
+ replyToMessageId?: number | undefined;
507
+ replyMarkup?: Record<string, unknown> | undefined;
508
+ messageThreadId?: number | undefined;
509
+ caption?: string | undefined;
510
+ }>;
511
+ client: {
512
+ fileUrl(path: string): string;
513
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
514
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
515
+ downloadFile(path: string): Promise<string>;
516
+ };
517
+ options: object;
518
+ req: import("frogbot").FrogbotRequest;
519
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
520
+ messageThreadId?: ((args: {
521
+ input: Partial<{
522
+ disableNotification: boolean;
523
+ protectContent: boolean;
524
+ chatId: string | number;
525
+ document: string | {
526
+ fileId: string | number;
527
+ name?: string | undefined;
528
+ };
529
+ parseMode: "MarkdownV2" | "HTML" | "None";
530
+ replyToMessageId?: number | undefined;
531
+ replyMarkup?: Record<string, unknown> | undefined;
532
+ messageThreadId?: number | undefined;
533
+ caption?: string | undefined;
534
+ }>;
535
+ client: {
536
+ fileUrl(path: string): string;
537
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
538
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
539
+ downloadFile(path: string): Promise<string>;
540
+ };
541
+ options: object;
542
+ req: import("frogbot").FrogbotRequest;
543
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
544
+ caption?: ((args: {
545
+ input: Partial<{
546
+ disableNotification: boolean;
547
+ protectContent: boolean;
548
+ chatId: string | number;
549
+ document: string | {
550
+ fileId: string | number;
551
+ name?: string | undefined;
552
+ };
553
+ parseMode: "MarkdownV2" | "HTML" | "None";
554
+ replyToMessageId?: number | undefined;
555
+ replyMarkup?: Record<string, unknown> | undefined;
556
+ messageThreadId?: number | undefined;
557
+ caption?: string | undefined;
558
+ }>;
559
+ client: {
560
+ fileUrl(path: string): string;
561
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
562
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
563
+ downloadFile(path: string): Promise<string>;
564
+ };
565
+ options: object;
566
+ req: import("frogbot").FrogbotRequest;
567
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
568
+ }> | undefined;
569
+ };
570
+ export declare const sendAudio: {
571
+ run({ client, input, req }: PieceRunArgs<Input, object, TelegramBotClient>): Promise<{
572
+ [x: string]: unknown;
573
+ ok: true;
574
+ result?: unknown;
575
+ }>;
576
+ slug: string;
577
+ label?: string;
578
+ description: string;
579
+ input: z.ZodObject<{
580
+ replyToMessageId: z.ZodOptional<z.ZodNumber>;
581
+ replyMarkup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
582
+ messageThreadId: z.ZodOptional<z.ZodNumber>;
583
+ disableNotification: z.ZodDefault<z.ZodBoolean>;
584
+ protectContent: z.ZodDefault<z.ZodBoolean>;
585
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
586
+ audio: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
587
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
588
+ name: z.ZodOptional<z.ZodString>;
589
+ }, z.core.$strip>]>;
590
+ caption: z.ZodOptional<z.ZodString>;
591
+ parseMode: z.ZodDefault<z.ZodEnum<{
592
+ MarkdownV2: "MarkdownV2";
593
+ HTML: "HTML";
594
+ None: "None";
595
+ }>>;
596
+ duration: z.ZodOptional<z.ZodNumber>;
597
+ performer: z.ZodOptional<z.ZodString>;
598
+ title: z.ZodOptional<z.ZodString>;
599
+ thumbnail: z.ZodOptional<z.ZodString>;
600
+ }, z.core.$strip>;
601
+ output?: z.ZodObject<{
602
+ ok: z.ZodLiteral<true>;
603
+ result: z.ZodOptional<z.ZodUnknown>;
604
+ }, z.core.$loose> | undefined;
605
+ idempotent?: boolean;
606
+ options?: Partial<{
607
+ disableNotification: (args: {
608
+ input: Partial<{
609
+ disableNotification: boolean;
610
+ protectContent: boolean;
611
+ chatId: string | number;
612
+ audio: string | {
613
+ fileId: string | number;
614
+ name?: string | undefined;
615
+ };
616
+ parseMode: "MarkdownV2" | "HTML" | "None";
617
+ replyToMessageId?: number | undefined;
618
+ replyMarkup?: Record<string, unknown> | undefined;
619
+ messageThreadId?: number | undefined;
620
+ caption?: string | undefined;
621
+ duration?: number | undefined;
622
+ performer?: string | undefined;
623
+ title?: string | undefined;
624
+ thumbnail?: string | undefined;
625
+ }>;
626
+ client: {
627
+ fileUrl(path: string): string;
628
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
629
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
630
+ downloadFile(path: string): Promise<string>;
631
+ };
632
+ options: object;
633
+ req: import("frogbot").FrogbotRequest;
634
+ }) => Promise<import("frogbot").PieceOption[]>;
635
+ protectContent: (args: {
636
+ input: Partial<{
637
+ disableNotification: boolean;
638
+ protectContent: boolean;
639
+ chatId: string | number;
640
+ audio: string | {
641
+ fileId: string | number;
642
+ name?: string | undefined;
643
+ };
644
+ parseMode: "MarkdownV2" | "HTML" | "None";
645
+ replyToMessageId?: number | undefined;
646
+ replyMarkup?: Record<string, unknown> | undefined;
647
+ messageThreadId?: number | undefined;
648
+ caption?: string | undefined;
649
+ duration?: number | undefined;
650
+ performer?: string | undefined;
651
+ title?: string | undefined;
652
+ thumbnail?: string | undefined;
653
+ }>;
654
+ client: {
655
+ fileUrl(path: string): string;
656
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
657
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
658
+ downloadFile(path: string): Promise<string>;
659
+ };
660
+ options: object;
661
+ req: import("frogbot").FrogbotRequest;
662
+ }) => Promise<import("frogbot").PieceOption[]>;
663
+ chatId: (args: {
664
+ input: Partial<{
665
+ disableNotification: boolean;
666
+ protectContent: boolean;
667
+ chatId: string | number;
668
+ audio: string | {
669
+ fileId: string | number;
670
+ name?: string | undefined;
671
+ };
672
+ parseMode: "MarkdownV2" | "HTML" | "None";
673
+ replyToMessageId?: number | undefined;
674
+ replyMarkup?: Record<string, unknown> | undefined;
675
+ messageThreadId?: number | undefined;
676
+ caption?: string | undefined;
677
+ duration?: number | undefined;
678
+ performer?: string | undefined;
679
+ title?: string | undefined;
680
+ thumbnail?: string | undefined;
681
+ }>;
682
+ client: {
683
+ fileUrl(path: string): string;
684
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
685
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
686
+ downloadFile(path: string): Promise<string>;
687
+ };
688
+ options: object;
689
+ req: import("frogbot").FrogbotRequest;
690
+ }) => Promise<import("frogbot").PieceOption[]>;
691
+ audio: (args: {
692
+ input: Partial<{
693
+ disableNotification: boolean;
694
+ protectContent: boolean;
695
+ chatId: string | number;
696
+ audio: string | {
697
+ fileId: string | number;
698
+ name?: string | undefined;
699
+ };
700
+ parseMode: "MarkdownV2" | "HTML" | "None";
701
+ replyToMessageId?: number | undefined;
702
+ replyMarkup?: Record<string, unknown> | undefined;
703
+ messageThreadId?: number | undefined;
704
+ caption?: string | undefined;
705
+ duration?: number | undefined;
706
+ performer?: string | undefined;
707
+ title?: string | undefined;
708
+ thumbnail?: string | undefined;
709
+ }>;
710
+ client: {
711
+ fileUrl(path: string): string;
712
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
713
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
714
+ downloadFile(path: string): Promise<string>;
715
+ };
716
+ options: object;
717
+ req: import("frogbot").FrogbotRequest;
718
+ }) => Promise<import("frogbot").PieceOption[]>;
719
+ parseMode: (args: {
720
+ input: Partial<{
721
+ disableNotification: boolean;
722
+ protectContent: boolean;
723
+ chatId: string | number;
724
+ audio: string | {
725
+ fileId: string | number;
726
+ name?: string | undefined;
727
+ };
728
+ parseMode: "MarkdownV2" | "HTML" | "None";
729
+ replyToMessageId?: number | undefined;
730
+ replyMarkup?: Record<string, unknown> | undefined;
731
+ messageThreadId?: number | undefined;
732
+ caption?: string | undefined;
733
+ duration?: number | undefined;
734
+ performer?: string | undefined;
735
+ title?: string | undefined;
736
+ thumbnail?: string | undefined;
737
+ }>;
738
+ client: {
739
+ fileUrl(path: string): string;
740
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
741
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
742
+ downloadFile(path: string): Promise<string>;
743
+ };
744
+ options: object;
745
+ req: import("frogbot").FrogbotRequest;
746
+ }) => Promise<import("frogbot").PieceOption[]>;
747
+ replyToMessageId?: ((args: {
748
+ input: Partial<{
749
+ disableNotification: boolean;
750
+ protectContent: boolean;
751
+ chatId: string | number;
752
+ audio: string | {
753
+ fileId: string | number;
754
+ name?: string | undefined;
755
+ };
756
+ parseMode: "MarkdownV2" | "HTML" | "None";
757
+ replyToMessageId?: number | undefined;
758
+ replyMarkup?: Record<string, unknown> | undefined;
759
+ messageThreadId?: number | undefined;
760
+ caption?: string | undefined;
761
+ duration?: number | undefined;
762
+ performer?: string | undefined;
763
+ title?: string | undefined;
764
+ thumbnail?: string | undefined;
765
+ }>;
766
+ client: {
767
+ fileUrl(path: string): string;
768
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
769
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
770
+ downloadFile(path: string): Promise<string>;
771
+ };
772
+ options: object;
773
+ req: import("frogbot").FrogbotRequest;
774
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
775
+ replyMarkup?: ((args: {
776
+ input: Partial<{
777
+ disableNotification: boolean;
778
+ protectContent: boolean;
779
+ chatId: string | number;
780
+ audio: string | {
781
+ fileId: string | number;
782
+ name?: string | undefined;
783
+ };
784
+ parseMode: "MarkdownV2" | "HTML" | "None";
785
+ replyToMessageId?: number | undefined;
786
+ replyMarkup?: Record<string, unknown> | undefined;
787
+ messageThreadId?: number | undefined;
788
+ caption?: string | undefined;
789
+ duration?: number | undefined;
790
+ performer?: string | undefined;
791
+ title?: string | undefined;
792
+ thumbnail?: string | undefined;
793
+ }>;
794
+ client: {
795
+ fileUrl(path: string): string;
796
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
797
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
798
+ downloadFile(path: string): Promise<string>;
799
+ };
800
+ options: object;
801
+ req: import("frogbot").FrogbotRequest;
802
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
803
+ messageThreadId?: ((args: {
804
+ input: Partial<{
805
+ disableNotification: boolean;
806
+ protectContent: boolean;
807
+ chatId: string | number;
808
+ audio: string | {
809
+ fileId: string | number;
810
+ name?: string | undefined;
811
+ };
812
+ parseMode: "MarkdownV2" | "HTML" | "None";
813
+ replyToMessageId?: number | undefined;
814
+ replyMarkup?: Record<string, unknown> | undefined;
815
+ messageThreadId?: number | undefined;
816
+ caption?: string | undefined;
817
+ duration?: number | undefined;
818
+ performer?: string | undefined;
819
+ title?: string | undefined;
820
+ thumbnail?: string | undefined;
821
+ }>;
822
+ client: {
823
+ fileUrl(path: string): string;
824
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
825
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
826
+ downloadFile(path: string): Promise<string>;
827
+ };
828
+ options: object;
829
+ req: import("frogbot").FrogbotRequest;
830
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
831
+ caption?: ((args: {
832
+ input: Partial<{
833
+ disableNotification: boolean;
834
+ protectContent: boolean;
835
+ chatId: string | number;
836
+ audio: string | {
837
+ fileId: string | number;
838
+ name?: string | undefined;
839
+ };
840
+ parseMode: "MarkdownV2" | "HTML" | "None";
841
+ replyToMessageId?: number | undefined;
842
+ replyMarkup?: Record<string, unknown> | undefined;
843
+ messageThreadId?: number | undefined;
844
+ caption?: string | undefined;
845
+ duration?: number | undefined;
846
+ performer?: string | undefined;
847
+ title?: string | undefined;
848
+ thumbnail?: string | undefined;
849
+ }>;
850
+ client: {
851
+ fileUrl(path: string): string;
852
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
853
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
854
+ downloadFile(path: string): Promise<string>;
855
+ };
856
+ options: object;
857
+ req: import("frogbot").FrogbotRequest;
858
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
859
+ duration?: ((args: {
860
+ input: Partial<{
861
+ disableNotification: boolean;
862
+ protectContent: boolean;
863
+ chatId: string | number;
864
+ audio: string | {
865
+ fileId: string | number;
866
+ name?: string | undefined;
867
+ };
868
+ parseMode: "MarkdownV2" | "HTML" | "None";
869
+ replyToMessageId?: number | undefined;
870
+ replyMarkup?: Record<string, unknown> | undefined;
871
+ messageThreadId?: number | undefined;
872
+ caption?: string | undefined;
873
+ duration?: number | undefined;
874
+ performer?: string | undefined;
875
+ title?: string | undefined;
876
+ thumbnail?: string | undefined;
877
+ }>;
878
+ client: {
879
+ fileUrl(path: string): string;
880
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
881
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
882
+ downloadFile(path: string): Promise<string>;
883
+ };
884
+ options: object;
885
+ req: import("frogbot").FrogbotRequest;
886
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
887
+ performer?: ((args: {
888
+ input: Partial<{
889
+ disableNotification: boolean;
890
+ protectContent: boolean;
891
+ chatId: string | number;
892
+ audio: string | {
893
+ fileId: string | number;
894
+ name?: string | undefined;
895
+ };
896
+ parseMode: "MarkdownV2" | "HTML" | "None";
897
+ replyToMessageId?: number | undefined;
898
+ replyMarkup?: Record<string, unknown> | undefined;
899
+ messageThreadId?: number | undefined;
900
+ caption?: string | undefined;
901
+ duration?: number | undefined;
902
+ performer?: string | undefined;
903
+ title?: string | undefined;
904
+ thumbnail?: string | undefined;
905
+ }>;
906
+ client: {
907
+ fileUrl(path: string): string;
908
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
909
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
910
+ downloadFile(path: string): Promise<string>;
911
+ };
912
+ options: object;
913
+ req: import("frogbot").FrogbotRequest;
914
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
915
+ title?: ((args: {
916
+ input: Partial<{
917
+ disableNotification: boolean;
918
+ protectContent: boolean;
919
+ chatId: string | number;
920
+ audio: string | {
921
+ fileId: string | number;
922
+ name?: string | undefined;
923
+ };
924
+ parseMode: "MarkdownV2" | "HTML" | "None";
925
+ replyToMessageId?: number | undefined;
926
+ replyMarkup?: Record<string, unknown> | undefined;
927
+ messageThreadId?: number | undefined;
928
+ caption?: string | undefined;
929
+ duration?: number | undefined;
930
+ performer?: string | undefined;
931
+ title?: string | undefined;
932
+ thumbnail?: string | undefined;
933
+ }>;
934
+ client: {
935
+ fileUrl(path: string): string;
936
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
937
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
938
+ downloadFile(path: string): Promise<string>;
939
+ };
940
+ options: object;
941
+ req: import("frogbot").FrogbotRequest;
942
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
943
+ thumbnail?: ((args: {
944
+ input: Partial<{
945
+ disableNotification: boolean;
946
+ protectContent: boolean;
947
+ chatId: string | number;
948
+ audio: string | {
949
+ fileId: string | number;
950
+ name?: string | undefined;
951
+ };
952
+ parseMode: "MarkdownV2" | "HTML" | "None";
953
+ replyToMessageId?: number | undefined;
954
+ replyMarkup?: Record<string, unknown> | undefined;
955
+ messageThreadId?: number | undefined;
956
+ caption?: string | undefined;
957
+ duration?: number | undefined;
958
+ performer?: string | undefined;
959
+ title?: string | undefined;
960
+ thumbnail?: string | undefined;
961
+ }>;
962
+ client: {
963
+ fileUrl(path: string): string;
964
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
965
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
966
+ downloadFile(path: string): Promise<string>;
967
+ };
968
+ options: object;
969
+ req: import("frogbot").FrogbotRequest;
970
+ }) => Promise<import("frogbot").PieceOption[]>) | undefined;
971
+ }> | undefined;
972
+ };
973
+ export declare const sendLocation: PieceActionDefinition<z.ZodObject<{
974
+ replyToMessageId: z.ZodOptional<z.ZodNumber>;
975
+ replyMarkup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
976
+ messageThreadId: z.ZodOptional<z.ZodNumber>;
977
+ disableNotification: z.ZodDefault<z.ZodBoolean>;
978
+ protectContent: z.ZodDefault<z.ZodBoolean>;
979
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
980
+ latitude: z.ZodNumber;
981
+ longitude: z.ZodNumber;
982
+ horizontalAccuracy: z.ZodOptional<z.ZodNumber>;
983
+ livePeriod: z.ZodOptional<z.ZodNumber>;
984
+ heading: z.ZodOptional<z.ZodNumber>;
985
+ proximityAlertRadius: z.ZodOptional<z.ZodNumber>;
986
+ }, z.core.$strip>, z.ZodObject<{
987
+ ok: z.ZodLiteral<true>;
988
+ result: z.ZodOptional<z.ZodUnknown>;
989
+ }, z.core.$loose>, object, {
990
+ fileUrl(path: string): string;
991
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
992
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
993
+ downloadFile(path: string): Promise<string>;
994
+ }>;
995
+ export declare const sendMediaGroup: PieceActionDefinition<z.ZodObject<{
996
+ messageThreadId: z.ZodOptional<z.ZodNumber>;
997
+ disableNotification: z.ZodDefault<z.ZodBoolean>;
998
+ protectContent: z.ZodDefault<z.ZodBoolean>;
999
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1000
+ media: z.ZodArray<z.ZodObject<{
1001
+ type: z.ZodEnum<{
1002
+ photo: "photo";
1003
+ video: "video";
1004
+ document: "document";
1005
+ audio: "audio";
1006
+ }>;
1007
+ media: z.ZodString;
1008
+ caption: z.ZodOptional<z.ZodString>;
1009
+ parseMode: z.ZodOptional<z.ZodEnum<{
1010
+ MarkdownV2: "MarkdownV2";
1011
+ HTML: "HTML";
1012
+ }>>;
1013
+ }, z.core.$strip>>;
1014
+ }, z.core.$strip>, z.ZodObject<{
1015
+ ok: z.ZodLiteral<true>;
1016
+ result: z.ZodOptional<z.ZodUnknown>;
1017
+ }, z.core.$loose>, object, {
1018
+ fileUrl(path: string): string;
1019
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1020
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1021
+ downloadFile(path: string): Promise<string>;
1022
+ }>;
1023
+ export declare const sendPoll: PieceActionDefinition<z.ZodObject<{
1024
+ replyToMessageId: z.ZodOptional<z.ZodNumber>;
1025
+ replyMarkup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1026
+ messageThreadId: z.ZodOptional<z.ZodNumber>;
1027
+ disableNotification: z.ZodDefault<z.ZodBoolean>;
1028
+ protectContent: z.ZodDefault<z.ZodBoolean>;
1029
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1030
+ question: z.ZodString;
1031
+ options: z.ZodArray<z.ZodString>;
1032
+ isAnonymous: z.ZodDefault<z.ZodBoolean>;
1033
+ type: z.ZodDefault<z.ZodEnum<{
1034
+ regular: "regular";
1035
+ quiz: "quiz";
1036
+ }>>;
1037
+ allowsMultipleAnswers: z.ZodDefault<z.ZodBoolean>;
1038
+ correctOptionId: z.ZodOptional<z.ZodNumber>;
1039
+ explanation: z.ZodOptional<z.ZodString>;
1040
+ explanationParseMode: z.ZodOptional<z.ZodEnum<{
1041
+ MarkdownV2: "MarkdownV2";
1042
+ HTML: "HTML";
1043
+ }>>;
1044
+ openPeriod: z.ZodOptional<z.ZodNumber>;
1045
+ closeDate: z.ZodOptional<z.ZodNumber>;
1046
+ isClosed: z.ZodDefault<z.ZodBoolean>;
1047
+ }, z.core.$strip>, z.ZodObject<{
1048
+ ok: z.ZodLiteral<true>;
1049
+ result: z.ZodOptional<z.ZodUnknown>;
1050
+ }, z.core.$loose>, object, {
1051
+ fileUrl(path: string): string;
1052
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1053
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1054
+ downloadFile(path: string): Promise<string>;
1055
+ }>;
1056
+ export declare const sendChatAction: PieceActionDefinition<z.ZodObject<{
1057
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1058
+ messageThreadId: z.ZodOptional<z.ZodNumber>;
1059
+ action: z.ZodEnum<{
1060
+ typing: "typing";
1061
+ upload_photo: "upload_photo";
1062
+ record_video: "record_video";
1063
+ upload_video: "upload_video";
1064
+ record_voice: "record_voice";
1065
+ upload_voice: "upload_voice";
1066
+ upload_document: "upload_document";
1067
+ choose_sticker: "choose_sticker";
1068
+ find_location: "find_location";
1069
+ record_video_note: "record_video_note";
1070
+ upload_video_note: "upload_video_note";
1071
+ }>;
1072
+ }, z.core.$strip>, z.ZodObject<{
1073
+ ok: z.ZodLiteral<true>;
1074
+ result: z.ZodOptional<z.ZodUnknown>;
1075
+ }, z.core.$loose>, object, {
1076
+ fileUrl(path: string): string;
1077
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1078
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1079
+ downloadFile(path: string): Promise<string>;
1080
+ }>;
1081
+ export declare const editMessageText: PieceActionDefinition<z.ZodObject<{
1082
+ chatId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1083
+ messageId: z.ZodOptional<z.ZodNumber>;
1084
+ inlineMessageId: z.ZodOptional<z.ZodString>;
1085
+ text: z.ZodString;
1086
+ parseMode: z.ZodDefault<z.ZodEnum<{
1087
+ MarkdownV2: "MarkdownV2";
1088
+ HTML: "HTML";
1089
+ None: "None";
1090
+ }>>;
1091
+ replyMarkup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1092
+ }, z.core.$strip>, z.ZodObject<{
1093
+ ok: z.ZodLiteral<true>;
1094
+ result: z.ZodOptional<z.ZodUnknown>;
1095
+ }, z.core.$loose>, object, {
1096
+ fileUrl(path: string): string;
1097
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1098
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1099
+ downloadFile(path: string): Promise<string>;
1100
+ }>;
1101
+ export declare const deleteMessage: PieceActionDefinition<z.ZodObject<{
1102
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1103
+ messageId: z.ZodNumber;
1104
+ }, z.core.$strip>, z.ZodObject<{
1105
+ ok: z.ZodLiteral<true>;
1106
+ result: z.ZodOptional<z.ZodUnknown>;
1107
+ }, z.core.$loose>, object, {
1108
+ fileUrl(path: string): string;
1109
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1110
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1111
+ downloadFile(path: string): Promise<string>;
1112
+ }>;
1113
+ export declare const forwardMessage: PieceActionDefinition<z.ZodObject<{
1114
+ messageThreadId: z.ZodOptional<z.ZodNumber>;
1115
+ disableNotification: z.ZodDefault<z.ZodBoolean>;
1116
+ protectContent: z.ZodDefault<z.ZodBoolean>;
1117
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1118
+ fromChatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1119
+ messageId: z.ZodNumber;
1120
+ }, z.core.$strip>, z.ZodObject<{
1121
+ ok: z.ZodLiteral<true>;
1122
+ result: z.ZodOptional<z.ZodUnknown>;
1123
+ }, z.core.$loose>, object, {
1124
+ fileUrl(path: string): string;
1125
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1126
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1127
+ downloadFile(path: string): Promise<string>;
1128
+ }>;
1129
+ export declare const pinMessage: PieceActionDefinition<z.ZodObject<{
1130
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1131
+ messageId: z.ZodNumber;
1132
+ disableNotification: z.ZodDefault<z.ZodBoolean>;
1133
+ }, z.core.$strip>, z.ZodObject<{
1134
+ ok: z.ZodLiteral<true>;
1135
+ result: z.ZodOptional<z.ZodUnknown>;
1136
+ }, z.core.$loose>, object, {
1137
+ fileUrl(path: string): string;
1138
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1139
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1140
+ downloadFile(path: string): Promise<string>;
1141
+ }>;
1142
+ export declare const unpinMessage: PieceActionDefinition<z.ZodObject<{
1143
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1144
+ messageId: z.ZodOptional<z.ZodNumber>;
1145
+ }, z.core.$strip>, z.ZodObject<{
1146
+ ok: z.ZodLiteral<true>;
1147
+ result: z.ZodOptional<z.ZodUnknown>;
1148
+ }, z.core.$loose>, object, {
1149
+ fileUrl(path: string): string;
1150
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1151
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1152
+ downloadFile(path: string): Promise<string>;
1153
+ }>;
1154
+ export declare const getChat: PieceActionDefinition<z.ZodObject<{
1155
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1156
+ }, z.core.$strip>, z.ZodObject<{
1157
+ ok: z.ZodLiteral<true>;
1158
+ result: z.ZodOptional<z.ZodUnknown>;
1159
+ }, z.core.$loose>, object, {
1160
+ fileUrl(path: string): string;
1161
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1162
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1163
+ downloadFile(path: string): Promise<string>;
1164
+ }>;
1165
+ export declare const getChatMember: PieceActionDefinition<z.ZodObject<{
1166
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1167
+ userId: z.ZodNumber;
1168
+ }, z.core.$strip>, z.ZodObject<{
1169
+ ok: z.ZodLiteral<true>;
1170
+ result: z.ZodOptional<z.ZodUnknown>;
1171
+ }, z.core.$loose>, object, {
1172
+ fileUrl(path: string): string;
1173
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1174
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1175
+ downloadFile(path: string): Promise<string>;
1176
+ }>;
1177
+ export declare const getFile: {
1178
+ slug: string;
1179
+ description: string;
1180
+ input: z.ZodObject<{
1181
+ fileId: z.ZodString;
1182
+ download: z.ZodDefault<z.ZodBoolean>;
1183
+ }, z.core.$strip>;
1184
+ output: z.ZodObject<{
1185
+ fileInfo: z.ZodObject<{
1186
+ file_id: z.ZodString;
1187
+ file_unique_id: z.ZodString;
1188
+ file_size: z.ZodOptional<z.ZodNumber>;
1189
+ file_path: z.ZodOptional<z.ZodString>;
1190
+ }, z.core.$loose>;
1191
+ fileUrl: z.ZodOptional<z.ZodString>;
1192
+ fileContentBase64: z.ZodOptional<z.ZodString>;
1193
+ }, z.core.$strip>;
1194
+ idempotent: boolean;
1195
+ run({ client, input, }: PieceRunArgs<{
1196
+ fileId: string;
1197
+ download: boolean;
1198
+ }, object, TelegramBotClient>): Promise<{
1199
+ fileInfo: {
1200
+ [x: string]: unknown;
1201
+ file_id: string;
1202
+ file_unique_id: string;
1203
+ file_size?: number | undefined;
1204
+ file_path?: string | undefined;
1205
+ };
1206
+ fileUrl: string | undefined;
1207
+ fileContentBase64: string | undefined;
1208
+ }>;
1209
+ };
1210
+ export declare const createInviteLink: PieceActionDefinition<z.ZodObject<{
1211
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1212
+ name: z.ZodOptional<z.ZodString>;
1213
+ expireDate: z.ZodOptional<z.ZodNumber>;
1214
+ memberLimit: z.ZodOptional<z.ZodNumber>;
1215
+ createsJoinRequest: z.ZodDefault<z.ZodBoolean>;
1216
+ }, z.core.$strip>, z.ZodObject<{
1217
+ ok: z.ZodLiteral<true>;
1218
+ result: z.ZodOptional<z.ZodUnknown>;
1219
+ }, z.core.$loose>, object, {
1220
+ fileUrl(path: string): string;
1221
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1222
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1223
+ downloadFile(path: string): Promise<string>;
1224
+ }>;
1225
+ export declare const answerCallbackQuery: PieceActionDefinition<z.ZodObject<{
1226
+ callbackQueryId: z.ZodString;
1227
+ text: z.ZodOptional<z.ZodString>;
1228
+ showAlert: z.ZodDefault<z.ZodBoolean>;
1229
+ url: z.ZodOptional<z.ZodString>;
1230
+ cacheTime: z.ZodDefault<z.ZodNumber>;
1231
+ }, z.core.$strip>, z.ZodObject<{
1232
+ ok: z.ZodLiteral<true>;
1233
+ result: z.ZodOptional<z.ZodUnknown>;
1234
+ }, z.core.$loose>, object, {
1235
+ fileUrl(path: string): string;
1236
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1237
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1238
+ downloadFile(path: string): Promise<string>;
1239
+ }>;
1240
+ declare const customInput: z.ZodObject<{
1241
+ method: z.ZodDefault<z.ZodEnum<{
1242
+ POST: "POST";
1243
+ GET: "GET";
1244
+ PUT: "PUT";
1245
+ PATCH: "PATCH";
1246
+ DELETE: "DELETE";
1247
+ }>>;
1248
+ endpoint: z.ZodString;
1249
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1250
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1251
+ body: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1252
+ }, z.core.$strip>;
1253
+ export declare const customApiCall: {
1254
+ slug: string;
1255
+ description: string;
1256
+ input: z.ZodObject<{
1257
+ method: z.ZodDefault<z.ZodEnum<{
1258
+ POST: "POST";
1259
+ GET: "GET";
1260
+ PUT: "PUT";
1261
+ PATCH: "PATCH";
1262
+ DELETE: "DELETE";
1263
+ }>>;
1264
+ endpoint: z.ZodString;
1265
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1266
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1267
+ body: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1268
+ }, z.core.$strip>;
1269
+ output: z.ZodUnknown;
1270
+ idempotent: boolean;
1271
+ run({ client, input, }: PieceRunArgs<z.output<typeof customInput>, object, TelegramBotClient>): Promise<unknown>;
1272
+ };
1273
+ export {};
1274
+ //# sourceMappingURL=index.d.ts.map