@frogbotai/piece-telegram-bot 0.27.0 → 0.28.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.
@@ -1,8 +1,5 @@
1
- import type { PieceActionDefinition, PieceRunArgs } from 'frogbot/pieces';
2
1
  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<{
2
+ export declare const sendTextMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
6
3
  replyToMessageId: z.ZodOptional<z.ZodNumber>;
7
4
  replyMarkup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
8
5
  messageThreadId: z.ZodOptional<z.ZodNumber>;
@@ -19,958 +16,141 @@ export declare const sendTextMessage: PieceActionDefinition<z.ZodObject<{
19
16
  }, z.core.$strip>, z.ZodObject<{
20
17
  ok: z.ZodLiteral<true>;
21
18
  result: z.ZodOptional<z.ZodUnknown>;
22
- }, z.core.$loose>, object, {
19
+ }, z.core.$loose>, {
20
+ webhookSecret?: string | undefined;
21
+ botUsername?: string | undefined;
22
+ allowedUserIds?: string[] | undefined;
23
+ }, {
23
24
  fileUrl(path: string): string;
24
25
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
25
26
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
26
27
  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
- animation: "animation";
46
- photo: "photo";
47
- sticker: "sticker";
48
- video: "video";
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: "animation" | "photo" | "sticker" | "video";
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: "animation" | "photo" | "sticker" | "video";
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: "animation" | "photo" | "sticker" | "video";
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: "animation" | "photo" | "sticker" | "video";
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: "animation" | "photo" | "sticker" | "video";
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: "animation" | "photo" | "sticker" | "video";
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: "animation" | "photo" | "sticker" | "video";
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: "animation" | "photo" | "sticker" | "video";
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: "animation" | "photo" | "sticker" | "video";
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: "animation" | "photo" | "sticker" | "video";
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;
28
+ }, {
29
+ [x: string]: unknown;
30
+ ok: true;
31
+ result?: unknown;
32
+ }> & {
33
+ slug: "sendTextMessage";
318
34
  };
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;
35
+ export declare const sendMedia: import("frogbot").PieceActionDefinition<z.ZodObject<{
36
+ replyToMessageId: z.ZodOptional<z.ZodNumber>;
37
+ replyMarkup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
38
+ messageThreadId: z.ZodOptional<z.ZodNumber>;
39
+ disableNotification: z.ZodDefault<z.ZodBoolean>;
40
+ protectContent: z.ZodDefault<z.ZodBoolean>;
41
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
42
+ mediaType: z.ZodEnum<{
43
+ animation: "animation";
44
+ photo: "photo";
45
+ sticker: "sticker";
46
+ video: "video";
324
47
  }>;
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;
48
+ media: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
49
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
50
+ name: z.ZodOptional<z.ZodString>;
51
+ }, z.core.$strip>]>;
52
+ message: z.ZodOptional<z.ZodString>;
53
+ parseMode: z.ZodDefault<z.ZodEnum<{
54
+ MarkdownV2: "MarkdownV2";
55
+ HTML: "HTML";
56
+ None: "None";
57
+ }>>;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ ok: z.ZodLiteral<true>;
60
+ result: z.ZodOptional<z.ZodUnknown>;
61
+ }, z.core.$loose>, {
62
+ webhookSecret?: string | undefined;
63
+ botUsername?: string | undefined;
64
+ allowedUserIds?: string[] | undefined;
65
+ }, {
66
+ fileUrl(path: string): string;
67
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
68
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
69
+ downloadFile(path: string): Promise<string>;
70
+ }, {
71
+ [x: string]: unknown;
72
+ ok: true;
73
+ result?: unknown;
74
+ }> & {
75
+ slug: "sendMedia";
569
76
  };
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;
77
+ export declare const sendDocument: import("frogbot").PieceActionDefinition<z.ZodObject<{
78
+ replyToMessageId: z.ZodOptional<z.ZodNumber>;
79
+ replyMarkup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
80
+ messageThreadId: z.ZodOptional<z.ZodNumber>;
81
+ disableNotification: z.ZodDefault<z.ZodBoolean>;
82
+ protectContent: z.ZodDefault<z.ZodBoolean>;
83
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
84
+ document: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
85
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
86
+ name: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strip>]>;
88
+ caption: z.ZodOptional<z.ZodString>;
89
+ parseMode: z.ZodDefault<z.ZodEnum<{
90
+ MarkdownV2: "MarkdownV2";
91
+ HTML: "HTML";
92
+ None: "None";
93
+ }>>;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ ok: z.ZodLiteral<true>;
96
+ result: z.ZodOptional<z.ZodUnknown>;
97
+ }, z.core.$loose>, {
98
+ webhookSecret?: string | undefined;
99
+ botUsername?: string | undefined;
100
+ allowedUserIds?: string[] | undefined;
101
+ }, {
102
+ fileUrl(path: string): string;
103
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
104
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
105
+ downloadFile(path: string): Promise<string>;
106
+ }, {
107
+ [x: string]: unknown;
108
+ ok: true;
109
+ result?: unknown;
110
+ }> & {
111
+ slug: "sendDocument";
972
112
  };
973
- export declare const sendLocation: PieceActionDefinition<z.ZodObject<{
113
+ export declare const sendAudio: import("frogbot").PieceActionDefinition<z.ZodObject<{
114
+ replyToMessageId: z.ZodOptional<z.ZodNumber>;
115
+ replyMarkup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
116
+ messageThreadId: z.ZodOptional<z.ZodNumber>;
117
+ disableNotification: z.ZodDefault<z.ZodBoolean>;
118
+ protectContent: z.ZodDefault<z.ZodBoolean>;
119
+ chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
120
+ audio: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
121
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
122
+ name: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strip>]>;
124
+ caption: z.ZodOptional<z.ZodString>;
125
+ parseMode: z.ZodDefault<z.ZodEnum<{
126
+ MarkdownV2: "MarkdownV2";
127
+ HTML: "HTML";
128
+ None: "None";
129
+ }>>;
130
+ duration: z.ZodOptional<z.ZodNumber>;
131
+ performer: z.ZodOptional<z.ZodString>;
132
+ title: z.ZodOptional<z.ZodString>;
133
+ thumbnail: z.ZodOptional<z.ZodString>;
134
+ }, z.core.$strip>, z.ZodObject<{
135
+ ok: z.ZodLiteral<true>;
136
+ result: z.ZodOptional<z.ZodUnknown>;
137
+ }, z.core.$loose>, {
138
+ webhookSecret?: string | undefined;
139
+ botUsername?: string | undefined;
140
+ allowedUserIds?: string[] | undefined;
141
+ }, {
142
+ fileUrl(path: string): string;
143
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
144
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
145
+ downloadFile(path: string): Promise<string>;
146
+ }, {
147
+ [x: string]: unknown;
148
+ ok: true;
149
+ result?: unknown;
150
+ }> & {
151
+ slug: "sendAudio";
152
+ };
153
+ export declare const sendLocation: import("frogbot").PieceActionDefinition<z.ZodObject<{
974
154
  replyToMessageId: z.ZodOptional<z.ZodNumber>;
975
155
  replyMarkup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
976
156
  messageThreadId: z.ZodOptional<z.ZodNumber>;
@@ -986,13 +166,23 @@ export declare const sendLocation: PieceActionDefinition<z.ZodObject<{
986
166
  }, z.core.$strip>, z.ZodObject<{
987
167
  ok: z.ZodLiteral<true>;
988
168
  result: z.ZodOptional<z.ZodUnknown>;
989
- }, z.core.$loose>, object, {
169
+ }, z.core.$loose>, {
170
+ webhookSecret?: string | undefined;
171
+ botUsername?: string | undefined;
172
+ allowedUserIds?: string[] | undefined;
173
+ }, {
990
174
  fileUrl(path: string): string;
991
175
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
992
176
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
993
177
  downloadFile(path: string): Promise<string>;
994
- }>;
995
- export declare const sendMediaGroup: PieceActionDefinition<z.ZodObject<{
178
+ }, {
179
+ [x: string]: unknown;
180
+ ok: true;
181
+ result?: unknown;
182
+ }> & {
183
+ slug: "sendLocation";
184
+ };
185
+ export declare const sendMediaGroup: import("frogbot").PieceActionDefinition<z.ZodObject<{
996
186
  messageThreadId: z.ZodOptional<z.ZodNumber>;
997
187
  disableNotification: z.ZodDefault<z.ZodBoolean>;
998
188
  protectContent: z.ZodDefault<z.ZodBoolean>;
@@ -1014,13 +204,23 @@ export declare const sendMediaGroup: PieceActionDefinition<z.ZodObject<{
1014
204
  }, z.core.$strip>, z.ZodObject<{
1015
205
  ok: z.ZodLiteral<true>;
1016
206
  result: z.ZodOptional<z.ZodUnknown>;
1017
- }, z.core.$loose>, object, {
207
+ }, z.core.$loose>, {
208
+ webhookSecret?: string | undefined;
209
+ botUsername?: string | undefined;
210
+ allowedUserIds?: string[] | undefined;
211
+ }, {
1018
212
  fileUrl(path: string): string;
1019
213
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1020
214
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1021
215
  downloadFile(path: string): Promise<string>;
1022
- }>;
1023
- export declare const sendPoll: PieceActionDefinition<z.ZodObject<{
216
+ }, {
217
+ [x: string]: unknown;
218
+ ok: true;
219
+ result?: unknown;
220
+ }> & {
221
+ slug: "sendMediaGroup";
222
+ };
223
+ export declare const sendPoll: import("frogbot").PieceActionDefinition<z.ZodObject<{
1024
224
  replyToMessageId: z.ZodOptional<z.ZodNumber>;
1025
225
  replyMarkup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1026
226
  messageThreadId: z.ZodOptional<z.ZodNumber>;
@@ -1047,13 +247,23 @@ export declare const sendPoll: PieceActionDefinition<z.ZodObject<{
1047
247
  }, z.core.$strip>, z.ZodObject<{
1048
248
  ok: z.ZodLiteral<true>;
1049
249
  result: z.ZodOptional<z.ZodUnknown>;
1050
- }, z.core.$loose>, object, {
250
+ }, z.core.$loose>, {
251
+ webhookSecret?: string | undefined;
252
+ botUsername?: string | undefined;
253
+ allowedUserIds?: string[] | undefined;
254
+ }, {
1051
255
  fileUrl(path: string): string;
1052
256
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1053
257
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1054
258
  downloadFile(path: string): Promise<string>;
1055
- }>;
1056
- export declare const sendChatAction: PieceActionDefinition<z.ZodObject<{
259
+ }, {
260
+ [x: string]: unknown;
261
+ ok: true;
262
+ result?: unknown;
263
+ }> & {
264
+ slug: "sendPoll";
265
+ };
266
+ export declare const sendChatAction: import("frogbot").PieceActionDefinition<z.ZodObject<{
1057
267
  chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1058
268
  messageThreadId: z.ZodOptional<z.ZodNumber>;
1059
269
  action: z.ZodEnum<{
@@ -1072,13 +282,23 @@ export declare const sendChatAction: PieceActionDefinition<z.ZodObject<{
1072
282
  }, z.core.$strip>, z.ZodObject<{
1073
283
  ok: z.ZodLiteral<true>;
1074
284
  result: z.ZodOptional<z.ZodUnknown>;
1075
- }, z.core.$loose>, object, {
285
+ }, z.core.$loose>, {
286
+ webhookSecret?: string | undefined;
287
+ botUsername?: string | undefined;
288
+ allowedUserIds?: string[] | undefined;
289
+ }, {
1076
290
  fileUrl(path: string): string;
1077
291
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1078
292
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1079
293
  downloadFile(path: string): Promise<string>;
1080
- }>;
1081
- export declare const editMessageText: PieceActionDefinition<z.ZodObject<{
294
+ }, {
295
+ [x: string]: unknown;
296
+ ok: true;
297
+ result?: unknown;
298
+ }> & {
299
+ slug: "sendChatAction";
300
+ };
301
+ export declare const editMessageText: import("frogbot").PieceActionDefinition<z.ZodObject<{
1082
302
  chatId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1083
303
  messageId: z.ZodOptional<z.ZodNumber>;
1084
304
  inlineMessageId: z.ZodOptional<z.ZodString>;
@@ -1092,25 +312,45 @@ export declare const editMessageText: PieceActionDefinition<z.ZodObject<{
1092
312
  }, z.core.$strip>, z.ZodObject<{
1093
313
  ok: z.ZodLiteral<true>;
1094
314
  result: z.ZodOptional<z.ZodUnknown>;
1095
- }, z.core.$loose>, object, {
315
+ }, z.core.$loose>, {
316
+ webhookSecret?: string | undefined;
317
+ botUsername?: string | undefined;
318
+ allowedUserIds?: string[] | undefined;
319
+ }, {
1096
320
  fileUrl(path: string): string;
1097
321
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1098
322
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1099
323
  downloadFile(path: string): Promise<string>;
1100
- }>;
1101
- export declare const deleteMessage: PieceActionDefinition<z.ZodObject<{
324
+ }, {
325
+ [x: string]: unknown;
326
+ ok: true;
327
+ result?: unknown;
328
+ }> & {
329
+ slug: "editMessageText";
330
+ };
331
+ export declare const deleteMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
1102
332
  chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1103
333
  messageId: z.ZodNumber;
1104
334
  }, z.core.$strip>, z.ZodObject<{
1105
335
  ok: z.ZodLiteral<true>;
1106
336
  result: z.ZodOptional<z.ZodUnknown>;
1107
- }, z.core.$loose>, object, {
337
+ }, z.core.$loose>, {
338
+ webhookSecret?: string | undefined;
339
+ botUsername?: string | undefined;
340
+ allowedUserIds?: string[] | undefined;
341
+ }, {
1108
342
  fileUrl(path: string): string;
1109
343
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1110
344
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1111
345
  downloadFile(path: string): Promise<string>;
1112
- }>;
1113
- export declare const forwardMessage: PieceActionDefinition<z.ZodObject<{
346
+ }, {
347
+ [x: string]: unknown;
348
+ ok: true;
349
+ result?: unknown;
350
+ }> & {
351
+ slug: "deleteMessage";
352
+ };
353
+ export declare const forwardMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
1114
354
  messageThreadId: z.ZodOptional<z.ZodNumber>;
1115
355
  disableNotification: z.ZodDefault<z.ZodBoolean>;
1116
356
  protectContent: z.ZodDefault<z.ZodBoolean>;
@@ -1120,94 +360,145 @@ export declare const forwardMessage: PieceActionDefinition<z.ZodObject<{
1120
360
  }, z.core.$strip>, z.ZodObject<{
1121
361
  ok: z.ZodLiteral<true>;
1122
362
  result: z.ZodOptional<z.ZodUnknown>;
1123
- }, z.core.$loose>, object, {
363
+ }, z.core.$loose>, {
364
+ webhookSecret?: string | undefined;
365
+ botUsername?: string | undefined;
366
+ allowedUserIds?: string[] | undefined;
367
+ }, {
1124
368
  fileUrl(path: string): string;
1125
369
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1126
370
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1127
371
  downloadFile(path: string): Promise<string>;
1128
- }>;
1129
- export declare const pinMessage: PieceActionDefinition<z.ZodObject<{
372
+ }, {
373
+ [x: string]: unknown;
374
+ ok: true;
375
+ result?: unknown;
376
+ }> & {
377
+ slug: "forwardMessage";
378
+ };
379
+ export declare const pinMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
1130
380
  chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1131
381
  messageId: z.ZodNumber;
1132
382
  disableNotification: z.ZodDefault<z.ZodBoolean>;
1133
383
  }, z.core.$strip>, z.ZodObject<{
1134
384
  ok: z.ZodLiteral<true>;
1135
385
  result: z.ZodOptional<z.ZodUnknown>;
1136
- }, z.core.$loose>, object, {
386
+ }, z.core.$loose>, {
387
+ webhookSecret?: string | undefined;
388
+ botUsername?: string | undefined;
389
+ allowedUserIds?: string[] | undefined;
390
+ }, {
1137
391
  fileUrl(path: string): string;
1138
392
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1139
393
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1140
394
  downloadFile(path: string): Promise<string>;
1141
- }>;
1142
- export declare const unpinMessage: PieceActionDefinition<z.ZodObject<{
395
+ }, {
396
+ [x: string]: unknown;
397
+ ok: true;
398
+ result?: unknown;
399
+ }> & {
400
+ slug: "pinMessage";
401
+ };
402
+ export declare const unpinMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
1143
403
  chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1144
404
  messageId: z.ZodOptional<z.ZodNumber>;
1145
405
  }, z.core.$strip>, z.ZodObject<{
1146
406
  ok: z.ZodLiteral<true>;
1147
407
  result: z.ZodOptional<z.ZodUnknown>;
1148
- }, z.core.$loose>, object, {
408
+ }, z.core.$loose>, {
409
+ webhookSecret?: string | undefined;
410
+ botUsername?: string | undefined;
411
+ allowedUserIds?: string[] | undefined;
412
+ }, {
1149
413
  fileUrl(path: string): string;
1150
414
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1151
415
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1152
416
  downloadFile(path: string): Promise<string>;
1153
- }>;
1154
- export declare const getChat: PieceActionDefinition<z.ZodObject<{
417
+ }, {
418
+ [x: string]: unknown;
419
+ ok: true;
420
+ result?: unknown;
421
+ }> & {
422
+ slug: "unpinMessage";
423
+ };
424
+ export declare const getChat: import("frogbot").PieceActionDefinition<z.ZodObject<{
1155
425
  chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1156
426
  }, z.core.$strip>, z.ZodObject<{
1157
427
  ok: z.ZodLiteral<true>;
1158
428
  result: z.ZodOptional<z.ZodUnknown>;
1159
- }, z.core.$loose>, object, {
429
+ }, z.core.$loose>, {
430
+ webhookSecret?: string | undefined;
431
+ botUsername?: string | undefined;
432
+ allowedUserIds?: string[] | undefined;
433
+ }, {
1160
434
  fileUrl(path: string): string;
1161
435
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1162
436
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1163
437
  downloadFile(path: string): Promise<string>;
1164
- }>;
1165
- export declare const getChatMember: PieceActionDefinition<z.ZodObject<{
438
+ }, {
439
+ [x: string]: unknown;
440
+ ok: true;
441
+ result?: unknown;
442
+ }> & {
443
+ slug: "getChat";
444
+ };
445
+ export declare const getChatMember: import("frogbot").PieceActionDefinition<z.ZodObject<{
1166
446
  chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1167
447
  userId: z.ZodNumber;
1168
448
  }, z.core.$strip>, z.ZodObject<{
1169
449
  ok: z.ZodLiteral<true>;
1170
450
  result: z.ZodOptional<z.ZodUnknown>;
1171
- }, z.core.$loose>, object, {
451
+ }, z.core.$loose>, {
452
+ webhookSecret?: string | undefined;
453
+ botUsername?: string | undefined;
454
+ allowedUserIds?: string[] | undefined;
455
+ }, {
1172
456
  fileUrl(path: string): string;
1173
457
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1174
458
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1175
459
  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
- }>;
460
+ }, {
461
+ [x: string]: unknown;
462
+ ok: true;
463
+ result?: unknown;
464
+ }> & {
465
+ slug: "getChatMember";
466
+ };
467
+ export declare const getFile: import("frogbot").PieceActionDefinition<z.ZodObject<{
468
+ fileId: z.ZodString;
469
+ download: z.ZodDefault<z.ZodBoolean>;
470
+ }, z.core.$strip>, z.ZodObject<{
471
+ fileInfo: z.ZodObject<{
472
+ file_id: z.ZodString;
473
+ file_unique_id: z.ZodString;
474
+ file_size: z.ZodOptional<z.ZodNumber>;
475
+ file_path: z.ZodOptional<z.ZodString>;
476
+ }, z.core.$loose>;
477
+ fileUrl: z.ZodOptional<z.ZodString>;
478
+ fileContentBase64: z.ZodOptional<z.ZodString>;
479
+ }, z.core.$strip>, {
480
+ webhookSecret?: string | undefined;
481
+ botUsername?: string | undefined;
482
+ allowedUserIds?: string[] | undefined;
483
+ }, {
484
+ fileUrl(path: string): string;
485
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
486
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
487
+ downloadFile(path: string): Promise<string>;
488
+ }, {
489
+ fileInfo: {
490
+ [x: string]: unknown;
491
+ file_id: string;
492
+ file_unique_id: string;
493
+ file_size?: number | undefined;
494
+ file_path?: string | undefined;
495
+ };
496
+ fileUrl?: string | undefined;
497
+ fileContentBase64?: string | undefined;
498
+ }> & {
499
+ slug: "getFile";
1209
500
  };
1210
- export declare const createInviteLink: PieceActionDefinition<z.ZodObject<{
501
+ export declare const createInviteLink: import("frogbot").PieceActionDefinition<z.ZodObject<{
1211
502
  chatId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1212
503
  name: z.ZodOptional<z.ZodString>;
1213
504
  expireDate: z.ZodOptional<z.ZodNumber>;
@@ -1216,13 +507,23 @@ export declare const createInviteLink: PieceActionDefinition<z.ZodObject<{
1216
507
  }, z.core.$strip>, z.ZodObject<{
1217
508
  ok: z.ZodLiteral<true>;
1218
509
  result: z.ZodOptional<z.ZodUnknown>;
1219
- }, z.core.$loose>, object, {
510
+ }, z.core.$loose>, {
511
+ webhookSecret?: string | undefined;
512
+ botUsername?: string | undefined;
513
+ allowedUserIds?: string[] | undefined;
514
+ }, {
1220
515
  fileUrl(path: string): string;
1221
516
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1222
517
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1223
518
  downloadFile(path: string): Promise<string>;
1224
- }>;
1225
- export declare const answerCallbackQuery: PieceActionDefinition<z.ZodObject<{
519
+ }, {
520
+ [x: string]: unknown;
521
+ ok: true;
522
+ result?: unknown;
523
+ }> & {
524
+ slug: "createInviteLink";
525
+ };
526
+ export declare const answerCallbackQuery: import("frogbot").PieceActionDefinition<z.ZodObject<{
1226
527
  callbackQueryId: z.ZodString;
1227
528
  text: z.ZodOptional<z.ZodString>;
1228
529
  showAlert: z.ZodDefault<z.ZodBoolean>;
@@ -1231,13 +532,23 @@ export declare const answerCallbackQuery: PieceActionDefinition<z.ZodObject<{
1231
532
  }, z.core.$strip>, z.ZodObject<{
1232
533
  ok: z.ZodLiteral<true>;
1233
534
  result: z.ZodOptional<z.ZodUnknown>;
1234
- }, z.core.$loose>, object, {
535
+ }, z.core.$loose>, {
536
+ webhookSecret?: string | undefined;
537
+ botUsername?: string | undefined;
538
+ allowedUserIds?: string[] | undefined;
539
+ }, {
1235
540
  fileUrl(path: string): string;
1236
541
  call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
1237
542
  request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
1238
543
  downloadFile(path: string): Promise<string>;
1239
- }>;
1240
- declare const customInput: z.ZodObject<{
544
+ }, {
545
+ [x: string]: unknown;
546
+ ok: true;
547
+ result?: unknown;
548
+ }> & {
549
+ slug: "answerCallbackQuery";
550
+ };
551
+ export declare const customApiCall: import("frogbot").PieceActionDefinition<z.ZodObject<{
1241
552
  method: z.ZodDefault<z.ZodEnum<{
1242
553
  POST: "POST";
1243
554
  GET: "GET";
@@ -1249,26 +560,16 @@ declare const customInput: z.ZodObject<{
1249
560
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1250
561
  query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1251
562
  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>;
563
+ }, z.core.$strip>, z.ZodUnknown, {
564
+ webhookSecret?: string | undefined;
565
+ botUsername?: string | undefined;
566
+ allowedUserIds?: string[] | undefined;
567
+ }, {
568
+ fileUrl(path: string): string;
569
+ call(method: string, body?: unknown): Promise<import("../client.js").TelegramResponse>;
570
+ request(endpoint: string, request: import("../client.js").TelegramRequest): Promise<unknown>;
571
+ downloadFile(path: string): Promise<string>;
572
+ }, unknown> & {
573
+ slug: "customApiCall";
1272
574
  };
1273
- export {};
1274
575
  //# sourceMappingURL=index.d.ts.map