@divyacon/piece-telegram-bot 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.MIT-AP +24 -0
- package/README.md +8 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +122 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/action/answer-callback-query.action.d.ts +8 -0
- package/dist/lib/action/answer-callback-query.action.d.ts.map +1 -0
- package/dist/lib/action/answer-callback-query.action.js +63 -0
- package/dist/lib/action/answer-callback-query.action.js.map +1 -0
- package/dist/lib/action/create-invite-link.d.ts +9 -0
- package/dist/lib/action/create-invite-link.d.ts.map +1 -0
- package/dist/lib/action/create-invite-link.js +66 -0
- package/dist/lib/action/create-invite-link.js.map +1 -0
- package/dist/lib/action/delete-message.action.d.ts +6 -0
- package/dist/lib/action/delete-message.action.d.ts.map +1 -0
- package/dist/lib/action/delete-message.action.js +42 -0
- package/dist/lib/action/delete-message.action.js.map +1 -0
- package/dist/lib/action/edit-message-text.action.d.ts +12 -0
- package/dist/lib/action/edit-message-text.action.d.ts.map +1 -0
- package/dist/lib/action/edit-message-text.action.js +76 -0
- package/dist/lib/action/edit-message-text.action.js.map +1 -0
- package/dist/lib/action/forward-message.action.d.ts +10 -0
- package/dist/lib/action/forward-message.action.d.ts.map +1 -0
- package/dist/lib/action/forward-message.action.js +59 -0
- package/dist/lib/action/forward-message.action.js.map +1 -0
- package/dist/lib/action/get-chat-member.d.ts +6 -0
- package/dist/lib/action/get-chat-member.d.ts.map +1 -0
- package/dist/lib/action/get-chat-member.js +49 -0
- package/dist/lib/action/get-chat-member.js.map +1 -0
- package/dist/lib/action/get-chat.action.d.ts +5 -0
- package/dist/lib/action/get-chat.action.d.ts.map +1 -0
- package/dist/lib/action/get-chat.action.js +42 -0
- package/dist/lib/action/get-chat.action.js.map +1 -0
- package/dist/lib/action/get-file.action.d.ts +5 -0
- package/dist/lib/action/get-file.action.d.ts.map +1 -0
- package/dist/lib/action/get-file.action.js +69 -0
- package/dist/lib/action/get-file.action.js.map +1 -0
- package/dist/lib/action/pin-message.action.d.ts +7 -0
- package/dist/lib/action/pin-message.action.d.ts.map +1 -0
- package/dist/lib/action/pin-message.action.js +50 -0
- package/dist/lib/action/pin-message.action.js.map +1 -0
- package/dist/lib/action/request-approval-message.d.ts +7 -0
- package/dist/lib/action/request-approval-message.d.ts.map +1 -0
- package/dist/lib/action/request-approval-message.js +84 -0
- package/dist/lib/action/request-approval-message.js.map +1 -0
- package/dist/lib/action/send-audio.action.d.ts +18 -0
- package/dist/lib/action/send-audio.action.d.ts.map +1 -0
- package/dist/lib/action/send-audio.action.js +128 -0
- package/dist/lib/action/send-audio.action.js.map +1 -0
- package/dist/lib/action/send-chat-action.action.d.ts +7 -0
- package/dist/lib/action/send-chat-action.action.d.ts.map +1 -0
- package/dist/lib/action/send-chat-action.action.js +61 -0
- package/dist/lib/action/send-chat-action.action.js.map +1 -0
- package/dist/lib/action/send-document.action.d.ts +15 -0
- package/dist/lib/action/send-document.action.d.ts.map +1 -0
- package/dist/lib/action/send-document.action.js +104 -0
- package/dist/lib/action/send-document.action.js.map +1 -0
- package/dist/lib/action/send-location.action.d.ts +16 -0
- package/dist/lib/action/send-location.action.d.ts.map +1 -0
- package/dist/lib/action/send-location.action.js +83 -0
- package/dist/lib/action/send-location.action.js.map +1 -0
- package/dist/lib/action/send-media-group.action.d.ts +11 -0
- package/dist/lib/action/send-media-group.action.d.ts.map +1 -0
- package/dist/lib/action/send-media-group.action.js +97 -0
- package/dist/lib/action/send-media-group.action.js.map +1 -0
- package/dist/lib/action/send-media.action.d.ts +14 -0
- package/dist/lib/action/send-media.action.d.ts.map +1 -0
- package/dist/lib/action/send-media.action.js +198 -0
- package/dist/lib/action/send-media.action.js.map +1 -0
- package/dist/lib/action/send-poll.action.d.ts +21 -0
- package/dist/lib/action/send-poll.action.d.ts.map +1 -0
- package/dist/lib/action/send-poll.action.js +145 -0
- package/dist/lib/action/send-poll.action.js.map +1 -0
- package/dist/lib/action/send-text-message.action.d.ts +14 -0
- package/dist/lib/action/send-text-message.action.d.ts.map +1 -0
- package/dist/lib/action/send-text-message.action.js +63 -0
- package/dist/lib/action/send-text-message.action.js.map +1 -0
- package/dist/lib/action/telegram-answer-callback-query.d.ts +8 -0
- package/dist/lib/action/telegram-answer-callback-query.d.ts.map +1 -0
- package/dist/lib/action/telegram-answer-callback-query.js +68 -0
- package/dist/lib/action/telegram-answer-callback-query.js.map +1 -0
- package/dist/lib/action/telegram-create-invite-link.d.ts +8 -0
- package/dist/lib/action/telegram-create-invite-link.d.ts.map +1 -0
- package/dist/lib/action/telegram-create-invite-link.js +68 -0
- package/dist/lib/action/telegram-create-invite-link.js.map +1 -0
- package/dist/lib/action/telegram-delete-message.d.ts +5 -0
- package/dist/lib/action/telegram-delete-message.d.ts.map +1 -0
- package/dist/lib/action/telegram-delete-message.js +44 -0
- package/dist/lib/action/telegram-delete-message.js.map +1 -0
- package/dist/lib/action/telegram-edit-message-text.d.ts +10 -0
- package/dist/lib/action/telegram-edit-message-text.d.ts.map +1 -0
- package/dist/lib/action/telegram-edit-message-text.js +93 -0
- package/dist/lib/action/telegram-edit-message-text.js.map +1 -0
- package/dist/lib/action/telegram-forward-message.d.ts +9 -0
- package/dist/lib/action/telegram-forward-message.d.ts.map +1 -0
- package/dist/lib/action/telegram-forward-message.js +61 -0
- package/dist/lib/action/telegram-forward-message.js.map +1 -0
- package/dist/lib/action/telegram-get-bot-info.d.ts +2 -0
- package/dist/lib/action/telegram-get-bot-info.d.ts.map +1 -0
- package/dist/lib/action/telegram-get-bot-info.js +39 -0
- package/dist/lib/action/telegram-get-bot-info.js.map +1 -0
- package/dist/lib/action/telegram-get-chat-administrators.d.ts +4 -0
- package/dist/lib/action/telegram-get-chat-administrators.d.ts.map +1 -0
- package/dist/lib/action/telegram-get-chat-administrators.js +44 -0
- package/dist/lib/action/telegram-get-chat-administrators.js.map +1 -0
- package/dist/lib/action/telegram-get-chat-member-count.d.ts +4 -0
- package/dist/lib/action/telegram-get-chat-member-count.d.ts.map +1 -0
- package/dist/lib/action/telegram-get-chat-member-count.js +44 -0
- package/dist/lib/action/telegram-get-chat-member-count.js.map +1 -0
- package/dist/lib/action/telegram-get-chat-member.d.ts +5 -0
- package/dist/lib/action/telegram-get-chat-member.d.ts.map +1 -0
- package/dist/lib/action/telegram-get-chat-member.js +51 -0
- package/dist/lib/action/telegram-get-chat-member.js.map +1 -0
- package/dist/lib/action/telegram-get-chat.d.ts +4 -0
- package/dist/lib/action/telegram-get-chat.d.ts.map +1 -0
- package/dist/lib/action/telegram-get-chat.js +44 -0
- package/dist/lib/action/telegram-get-chat.js.map +1 -0
- package/dist/lib/action/telegram-get-file.d.ts +5 -0
- package/dist/lib/action/telegram-get-file.d.ts.map +1 -0
- package/dist/lib/action/telegram-get-file.js +72 -0
- package/dist/lib/action/telegram-get-file.js.map +1 -0
- package/dist/lib/action/telegram-pin-message.d.ts +6 -0
- package/dist/lib/action/telegram-pin-message.d.ts.map +1 -0
- package/dist/lib/action/telegram-pin-message.js +52 -0
- package/dist/lib/action/telegram-pin-message.js.map +1 -0
- package/dist/lib/action/telegram-send-audio.d.ts +16 -0
- package/dist/lib/action/telegram-send-audio.d.ts.map +1 -0
- package/dist/lib/action/telegram-send-audio.js +149 -0
- package/dist/lib/action/telegram-send-audio.js.map +1 -0
- package/dist/lib/action/telegram-send-chat-action.d.ts +6 -0
- package/dist/lib/action/telegram-send-chat-action.d.ts.map +1 -0
- package/dist/lib/action/telegram-send-chat-action.js +67 -0
- package/dist/lib/action/telegram-send-chat-action.js.map +1 -0
- package/dist/lib/action/telegram-send-document.d.ts +13 -0
- package/dist/lib/action/telegram-send-document.d.ts.map +1 -0
- package/dist/lib/action/telegram-send-document.js +125 -0
- package/dist/lib/action/telegram-send-document.js.map +1 -0
- package/dist/lib/action/telegram-send-location.d.ts +15 -0
- package/dist/lib/action/telegram-send-location.d.ts.map +1 -0
- package/dist/lib/action/telegram-send-location.js +93 -0
- package/dist/lib/action/telegram-send-location.js.map +1 -0
- package/dist/lib/action/telegram-send-media-group.d.ts +10 -0
- package/dist/lib/action/telegram-send-media-group.d.ts.map +1 -0
- package/dist/lib/action/telegram-send-media-group.js +115 -0
- package/dist/lib/action/telegram-send-media-group.js.map +1 -0
- package/dist/lib/action/telegram-send-message.d.ts +12 -0
- package/dist/lib/action/telegram-send-message.d.ts.map +1 -0
- package/dist/lib/action/telegram-send-message.js +84 -0
- package/dist/lib/action/telegram-send-message.js.map +1 -0
- package/dist/lib/action/telegram-send-photo-or-video.d.ts +12 -0
- package/dist/lib/action/telegram-send-photo-or-video.d.ts.map +1 -0
- package/dist/lib/action/telegram-send-photo-or-video.js +219 -0
- package/dist/lib/action/telegram-send-photo-or-video.js.map +1 -0
- package/dist/lib/action/telegram-send-poll.d.ts +20 -0
- package/dist/lib/action/telegram-send-poll.d.ts.map +1 -0
- package/dist/lib/action/telegram-send-poll.js +167 -0
- package/dist/lib/action/telegram-send-poll.js.map +1 -0
- package/dist/lib/action/telegram-unpin-message.d.ts +5 -0
- package/dist/lib/action/telegram-unpin-message.d.ts.map +1 -0
- package/dist/lib/action/telegram-unpin-message.js +45 -0
- package/dist/lib/action/telegram-unpin-message.js.map +1 -0
- package/dist/lib/action/unpin-message.action.d.ts +6 -0
- package/dist/lib/action/unpin-message.action.d.ts.map +1 -0
- package/dist/lib/action/unpin-message.action.js +43 -0
- package/dist/lib/action/unpin-message.action.js.map +1 -0
- package/dist/lib/common/index.d.ts +25 -0
- package/dist/lib/common/index.d.ts.map +1 -0
- package/dist/lib/common/index.js +104 -0
- package/dist/lib/common/index.js.map +1 -0
- package/dist/lib/output-schemas.d.ts +41 -0
- package/dist/lib/output-schemas.d.ts.map +1 -0
- package/dist/lib/output-schemas.js +1853 -0
- package/dist/lib/output-schemas.js.map +1 -0
- package/dist/lib/trigger/new-message.d.ts +15 -0
- package/dist/lib/trigger/new-message.d.ts.map +1 -0
- package/dist/lib/trigger/new-message.js +121 -0
- package/dist/lib/trigger/new-message.js.map +1 -0
- package/package.json +44 -3
- package/src/index.ts +119 -0
- package/src/lib/action/answer-callback-query.action.ts +58 -0
- package/src/lib/action/create-invite-link.ts +59 -0
- package/src/lib/action/delete-message.action.ts +34 -0
- package/src/lib/action/edit-message-text.action.ts +71 -0
- package/src/lib/action/forward-message.action.ts +50 -0
- package/src/lib/action/get-chat-member.ts +40 -0
- package/src/lib/action/get-chat.action.ts +33 -0
- package/src/lib/action/get-file.action.ts +79 -0
- package/src/lib/action/pin-message.action.ts +41 -0
- package/src/lib/action/request-approval-message.ts +85 -0
- package/src/lib/action/send-audio.action.ts +123 -0
- package/src/lib/action/send-chat-action.action.ts +53 -0
- package/src/lib/action/send-document.action.ts +105 -0
- package/src/lib/action/send-location.action.ts +76 -0
- package/src/lib/action/send-media-group.action.ts +98 -0
- package/src/lib/action/send-media.action.ts +209 -0
- package/src/lib/action/send-poll.action.ts +140 -0
- package/src/lib/action/send-text-message.action.ts +54 -0
- package/src/lib/action/telegram-answer-callback-query.ts +64 -0
- package/src/lib/action/telegram-create-invite-link.ts +62 -0
- package/src/lib/action/telegram-delete-message.ts +37 -0
- package/src/lib/action/telegram-edit-message-text.ts +92 -0
- package/src/lib/action/telegram-forward-message.ts +54 -0
- package/src/lib/action/telegram-get-bot-info.ts +31 -0
- package/src/lib/action/telegram-get-chat-administrators.ts +36 -0
- package/src/lib/action/telegram-get-chat-member-count.ts +36 -0
- package/src/lib/action/telegram-get-chat-member.ts +43 -0
- package/src/lib/action/telegram-get-chat.ts +36 -0
- package/src/lib/action/telegram-get-file.ts +83 -0
- package/src/lib/action/telegram-pin-message.ts +45 -0
- package/src/lib/action/telegram-send-audio.ts +157 -0
- package/src/lib/action/telegram-send-chat-action.ts +61 -0
- package/src/lib/action/telegram-send-document.ts +136 -0
- package/src/lib/action/telegram-send-location.ts +89 -0
- package/src/lib/action/telegram-send-media-group.ts +119 -0
- package/src/lib/action/telegram-send-message.ts +79 -0
- package/src/lib/action/telegram-send-photo-or-video.ts +238 -0
- package/src/lib/action/telegram-send-poll.ts +170 -0
- package/src/lib/action/telegram-unpin-message.ts +38 -0
- package/src/lib/action/unpin-message.action.ts +36 -0
- package/src/lib/common/index.ts +147 -0
- package/src/lib/output-schemas.ts +1909 -0
- package/src/lib/trigger/new-message.ts +127 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.telegramSendPoll = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
// Vendored from Activepieces packages/pieces/community/telegram-bot/src/lib/action/telegram-send-poll.ts (MIT).
|
|
6
|
+
// Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
|
|
7
|
+
const pieces_framework_1 = require("@agnocon/pieces-framework");
|
|
8
|
+
const pieces_common_1 = require("@agnocon/pieces-common");
|
|
9
|
+
const common_1 = require("../common");
|
|
10
|
+
const __1 = require("../..");
|
|
11
|
+
const output_schemas_1 = require("../output-schemas");
|
|
12
|
+
exports.telegramSendPoll = (0, pieces_framework_1.createAction)({
|
|
13
|
+
auth: __1.telegramBotAuth,
|
|
14
|
+
name: 'telegram_send_poll',
|
|
15
|
+
displayName: 'Send Poll',
|
|
16
|
+
description: 'Send a native Telegram poll (regular or quiz) to a chat.',
|
|
17
|
+
audience: 'ai',
|
|
18
|
+
aiMetadata: {
|
|
19
|
+
description: 'Posts a native poll (regular or quiz) to a chat addressed by chat_id (a numeric id or @channelusername the bot can reach) with 2–10 answer options. Use to collect votes or run a quiz; quiz polls require correct_option_id (a 0-based index) and cannot allow multiple answers, and open_period and close_date are mutually exclusive. Not idempotent: each call creates a new poll.',
|
|
20
|
+
idempotent: false,
|
|
21
|
+
},
|
|
22
|
+
outputSchema: output_schemas_1.telegramSendPollActionOutputSchema,
|
|
23
|
+
props: {
|
|
24
|
+
chat_id: common_1.telegramCommons.chatIdProp(),
|
|
25
|
+
question: pieces_framework_1.Property.ShortText({
|
|
26
|
+
displayName: 'Question',
|
|
27
|
+
description: 'Poll question, 1–300 characters.',
|
|
28
|
+
required: true,
|
|
29
|
+
}),
|
|
30
|
+
options: pieces_framework_1.Property.Array({
|
|
31
|
+
displayName: 'Options',
|
|
32
|
+
description: 'List of answer options (2–10 options, each 1–100 characters).',
|
|
33
|
+
required: true,
|
|
34
|
+
}),
|
|
35
|
+
is_anonymous: pieces_framework_1.Property.Checkbox({
|
|
36
|
+
displayName: 'Anonymous',
|
|
37
|
+
description: 'True, if the poll needs to be anonymous. Default true.',
|
|
38
|
+
required: false,
|
|
39
|
+
defaultValue: true,
|
|
40
|
+
}),
|
|
41
|
+
type: pieces_framework_1.Property.StaticDropdown({
|
|
42
|
+
displayName: 'Poll Type',
|
|
43
|
+
description: 'Poll type. Defaults to "regular".',
|
|
44
|
+
required: false,
|
|
45
|
+
options: {
|
|
46
|
+
options: [
|
|
47
|
+
{ label: 'Regular', value: 'regular' },
|
|
48
|
+
{ label: 'Quiz', value: 'quiz' },
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
defaultValue: 'regular',
|
|
52
|
+
}),
|
|
53
|
+
allows_multiple_answers: pieces_framework_1.Property.Checkbox({
|
|
54
|
+
displayName: 'Allow Multiple Answers',
|
|
55
|
+
description: 'True if the poll allows multiple answers (regular polls only).',
|
|
56
|
+
required: false,
|
|
57
|
+
defaultValue: false,
|
|
58
|
+
}),
|
|
59
|
+
correct_option_id: pieces_framework_1.Property.Number({
|
|
60
|
+
displayName: 'Correct Option Id (Quiz)',
|
|
61
|
+
description: '0-based index of the correct answer option (required for quizzes).',
|
|
62
|
+
required: false,
|
|
63
|
+
}),
|
|
64
|
+
explanation: pieces_framework_1.Property.LongText({
|
|
65
|
+
displayName: 'Explanation (Quiz)',
|
|
66
|
+
description: 'Explanation shown when a user picks an incorrect answer (0–200 chars).',
|
|
67
|
+
required: false,
|
|
68
|
+
}),
|
|
69
|
+
explanation_parse_mode: pieces_framework_1.Property.StaticDropdown({
|
|
70
|
+
displayName: 'Explanation Format',
|
|
71
|
+
description: 'How the quiz explanation should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when the explanation is correctly escaped/tagged.',
|
|
72
|
+
required: false,
|
|
73
|
+
options: {
|
|
74
|
+
options: [
|
|
75
|
+
{ label: 'Plain Text', value: 'None' },
|
|
76
|
+
{ label: 'Markdown (V2)', value: 'MarkdownV2' },
|
|
77
|
+
{ label: 'HTML', value: 'HTML' },
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
defaultValue: 'None',
|
|
81
|
+
}),
|
|
82
|
+
open_period: pieces_framework_1.Property.Number({
|
|
83
|
+
displayName: 'Open Period (seconds)',
|
|
84
|
+
description: 'Amount of time in seconds the poll will be active (5–600).',
|
|
85
|
+
required: false,
|
|
86
|
+
}),
|
|
87
|
+
close_date: pieces_framework_1.Property.DateTime({
|
|
88
|
+
displayName: 'Close Date',
|
|
89
|
+
description: 'Point in time when the poll will be automatically closed.',
|
|
90
|
+
required: false,
|
|
91
|
+
}),
|
|
92
|
+
is_closed: pieces_framework_1.Property.Checkbox({
|
|
93
|
+
displayName: 'Closed',
|
|
94
|
+
description: 'Pass True if the poll should be immediately closed. Useful for previews.',
|
|
95
|
+
required: false,
|
|
96
|
+
defaultValue: false,
|
|
97
|
+
}),
|
|
98
|
+
message_thread_id: pieces_framework_1.Property.ShortText({
|
|
99
|
+
displayName: 'Message Thread Id',
|
|
100
|
+
description: 'Unique identifier for the target message thread of the forum; supergroup forums only.',
|
|
101
|
+
required: false,
|
|
102
|
+
}),
|
|
103
|
+
disable_notification: common_1.telegramCommons.disableNotificationProp(),
|
|
104
|
+
protect_content: common_1.telegramCommons.protectContentProp(),
|
|
105
|
+
reply_to_message_id: common_1.telegramCommons.replyToMessageIdProp(),
|
|
106
|
+
reply_markup: pieces_framework_1.Property.Json({
|
|
107
|
+
displayName: 'Reply Markup',
|
|
108
|
+
description: 'Advanced/optional. A raw JSON-serialized inline keyboard, e.g. {"inline_keyboard":[[{"text":"Open","url":"https://example.com"}]]}. Malformed markup is rejected by Telegram.',
|
|
109
|
+
required: false,
|
|
110
|
+
}),
|
|
111
|
+
},
|
|
112
|
+
run(ctx) {
|
|
113
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
115
|
+
const options = ((_a = ctx.propsValue.options) !== null && _a !== void 0 ? _a : []).map((option) => String(option));
|
|
116
|
+
if (options.length < 2 || options.length > 10) {
|
|
117
|
+
throw new Error('A poll requires between 2 and 10 options.');
|
|
118
|
+
}
|
|
119
|
+
const pollType = (_b = ctx.propsValue.type) !== null && _b !== void 0 ? _b : 'regular';
|
|
120
|
+
const correctOptionId = ctx.propsValue.correct_option_id;
|
|
121
|
+
if (pollType === 'quiz') {
|
|
122
|
+
if (correctOptionId === undefined || correctOptionId === null) {
|
|
123
|
+
throw new Error('Quiz polls require "Correct Option Id".');
|
|
124
|
+
}
|
|
125
|
+
if (correctOptionId < 0 || correctOptionId >= options.length) {
|
|
126
|
+
throw new Error(`"Correct Option Id" must be between 0 and ${options.length - 1} (the index of an option).`);
|
|
127
|
+
}
|
|
128
|
+
if (ctx.propsValue.allows_multiple_answers) {
|
|
129
|
+
throw new Error('Quiz polls cannot allow multiple answers.');
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
else if (correctOptionId !== undefined && correctOptionId !== null) {
|
|
133
|
+
throw new Error('"Correct Option Id" is only valid for quiz polls. Set "Poll Type" to Quiz or clear this field.');
|
|
134
|
+
}
|
|
135
|
+
if (ctx.propsValue.open_period && ctx.propsValue.close_date) {
|
|
136
|
+
throw new Error('"Open Period" and "Close Date" are mutually exclusive — set at most one.');
|
|
137
|
+
}
|
|
138
|
+
const explanationParseMode = common_1.telegramCommons.resolveParseMode(ctx.propsValue.explanation_parse_mode);
|
|
139
|
+
return yield pieces_common_1.httpClient.sendRequest({
|
|
140
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
141
|
+
url: common_1.telegramCommons.getApiUrl(ctx.auth, 'sendPoll'),
|
|
142
|
+
body: {
|
|
143
|
+
chat_id: ctx.propsValue.chat_id,
|
|
144
|
+
question: ctx.propsValue.question,
|
|
145
|
+
options,
|
|
146
|
+
message_thread_id: (_c = ctx.propsValue.message_thread_id) !== null && _c !== void 0 ? _c : undefined,
|
|
147
|
+
is_anonymous: (_d = ctx.propsValue.is_anonymous) !== null && _d !== void 0 ? _d : true,
|
|
148
|
+
type: (_e = ctx.propsValue.type) !== null && _e !== void 0 ? _e : 'regular',
|
|
149
|
+
allows_multiple_answers: (_f = ctx.propsValue.allows_multiple_answers) !== null && _f !== void 0 ? _f : false,
|
|
150
|
+
correct_option_id: (_g = ctx.propsValue.correct_option_id) !== null && _g !== void 0 ? _g : undefined,
|
|
151
|
+
explanation: (_h = ctx.propsValue.explanation) !== null && _h !== void 0 ? _h : undefined,
|
|
152
|
+
explanation_parse_mode: explanationParseMode,
|
|
153
|
+
open_period: (_j = ctx.propsValue.open_period) !== null && _j !== void 0 ? _j : undefined,
|
|
154
|
+
close_date: ctx.propsValue.close_date
|
|
155
|
+
? Math.floor(new Date(ctx.propsValue.close_date).getTime() / 1000)
|
|
156
|
+
: undefined,
|
|
157
|
+
is_closed: (_k = ctx.propsValue.is_closed) !== null && _k !== void 0 ? _k : false,
|
|
158
|
+
disable_notification: (_l = ctx.propsValue.disable_notification) !== null && _l !== void 0 ? _l : false,
|
|
159
|
+
protect_content: (_m = ctx.propsValue.protect_content) !== null && _m !== void 0 ? _m : false,
|
|
160
|
+
reply_to_message_id: (_o = ctx.propsValue.reply_to_message_id) !== null && _o !== void 0 ? _o : undefined,
|
|
161
|
+
reply_markup: (_p = ctx.propsValue.reply_markup) !== null && _p !== void 0 ? _p : undefined,
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
},
|
|
166
|
+
});
|
|
167
|
+
//# sourceMappingURL=telegram-send-poll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telegram-send-poll.js","sourceRoot":"","sources":["../../../src/lib/action/telegram-send-poll.ts"],"names":[],"mappings":";;;;AAAA,gHAAgH;AAChH,qEAAqE;AACrE,gEAAmE;AACnE,0DAAgE;AAChE,sCAA4C;AAC5C,6BAAwC;AACxC,sDAAuE;AAE1D,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,mBAAe;IACrB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,0DAA0D;IACvE,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,WAAW,EACT,wXAAwX;QAC1X,UAAU,EAAE,KAAK;KAClB;IACD,YAAY,EAAE,mDAAkC;IAChD,KAAK,EAAE;QACL,OAAO,EAAE,wBAAe,CAAC,UAAU,EAAE;QACrC,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACtB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,+DAA+D;YAC5E,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC9B,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,wDAAwD;YACrE,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,IAAI;SACnB,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK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AA,GAAG,CAAC,UAAU,CAAC,uBAAuB,mCAAI,KAAK;oBACxE,iBAAiB,EAAE,MAAA,GAAG,CAAC,UAAU,CAAC,iBAAiB,mCAAI,SAAS;oBAChE,WAAW,EAAE,MAAA,GAAG,CAAC,UAAU,CAAC,WAAW,mCAAI,SAAS;oBACpD,sBAAsB,EAAE,oBAAoB;oBAC5C,WAAW,EAAE,MAAA,GAAG,CAAC,UAAU,CAAC,WAAW,mCAAI,SAAS;oBACpD,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,UAAU;wBACnC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC;wBAClE,CAAC,CAAC,SAAS;oBACb,SAAS,EAAE,MAAA,GAAG,CAAC,UAAU,CAAC,SAAS,mCAAI,KAAK;oBAC5C,oBAAoB,EAAE,MAAA,GAAG,CAAC,UAAU,CAAC,oBAAoB,mCAAI,KAAK;oBAClE,eAAe,EAAE,MAAA,GAAG,CAAC,UAAU,CAAC,eAAe,mCAAI,KAAK;oBACxD,mBAAmB,EAAE,MAAA,GAAG,CAAC,UAAU,CAAC,mBAAmB,mCAAI,SAAS;oBACpE,YAAY,EAAE,MAAA,GAAG,CAAC,UAAU,CAAC,YAAY,mCAAI,SAAS;iBACvD;aACF,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const telegramUnpinMessage: import("@agnocon/pieces-framework").IAction<import("@agnocon/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
+
chat_id: import("@agnocon/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
message_id: import("@agnocon/pieces-framework").ShortTextProperty<false>;
|
|
4
|
+
}>;
|
|
5
|
+
//# sourceMappingURL=telegram-unpin-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telegram-unpin-message.d.ts","sourceRoot":"","sources":["../../../src/lib/action/telegram-unpin-message.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB;;;EA+B/B,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.telegramUnpinMessage = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
// Vendored from Activepieces packages/pieces/community/telegram-bot/src/lib/action/telegram-unpin-message.ts (MIT).
|
|
6
|
+
// Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
|
|
7
|
+
const pieces_framework_1 = require("@agnocon/pieces-framework");
|
|
8
|
+
const pieces_common_1 = require("@agnocon/pieces-common");
|
|
9
|
+
const common_1 = require("../common");
|
|
10
|
+
const __1 = require("../..");
|
|
11
|
+
const output_schemas_1 = require("../output-schemas");
|
|
12
|
+
exports.telegramUnpinMessage = (0, pieces_framework_1.createAction)({
|
|
13
|
+
auth: __1.telegramBotAuth,
|
|
14
|
+
name: 'telegram_unpin_message',
|
|
15
|
+
displayName: 'Unpin Message',
|
|
16
|
+
description: 'Unpin a message in a Telegram chat.',
|
|
17
|
+
audience: 'ai',
|
|
18
|
+
aiMetadata: {
|
|
19
|
+
description: 'Unpins a message in a chat addressed by chat_id (a numeric id or @channelusername the bot can reach) — supply message_id to unpin a specific message, or omit it to unpin the most recent pinned message; the bot must be an administrator with pin rights. Use to clear a pin set by telegram_pin_message. Idempotent: an already-unpinned message stays unpinned.',
|
|
20
|
+
idempotent: true,
|
|
21
|
+
},
|
|
22
|
+
outputSchema: output_schemas_1.telegramUnpinMessageActionOutputSchema,
|
|
23
|
+
props: {
|
|
24
|
+
chat_id: common_1.telegramCommons.chatIdProp(),
|
|
25
|
+
message_id: pieces_framework_1.Property.ShortText({
|
|
26
|
+
displayName: 'Message Id',
|
|
27
|
+
description: 'Identifier of the pinned message to unpin. Leave empty to unpin the most recent pinned message.',
|
|
28
|
+
required: false,
|
|
29
|
+
}),
|
|
30
|
+
},
|
|
31
|
+
run(ctx) {
|
|
32
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
var _a;
|
|
34
|
+
return yield pieces_common_1.httpClient.sendRequest({
|
|
35
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
36
|
+
url: common_1.telegramCommons.getApiUrl(ctx.auth, 'unpinChatMessage'),
|
|
37
|
+
body: {
|
|
38
|
+
chat_id: ctx.propsValue.chat_id,
|
|
39
|
+
message_id: (_a = ctx.propsValue.message_id) !== null && _a !== void 0 ? _a : undefined,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=telegram-unpin-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telegram-unpin-message.js","sourceRoot":"","sources":["../../../src/lib/action/telegram-unpin-message.ts"],"names":[],"mappings":";;;;AAAA,oHAAoH;AACpH,qEAAqE;AACrE,gEAAmE;AACnE,0DAAgE;AAChE,sCAA4C;AAC5C,6BAAwC;AACxC,sDAA2E;AAE9D,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,mBAAe;IACrB,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,WAAW,EACT,qWAAqW;QACvW,UAAU,EAAE,IAAI;KACjB;IACD,YAAY,EAAE,uDAAsC;IACpD,KAAK,EAAE;QACL,OAAO,EAAE,wBAAe,CAAC,UAAU,EAAE;QACrC,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,YAAY;YACzB,WAAW,EACT,iGAAiG;YACnG,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,GAAG;;;YACX,OAAO,MAAM,0BAAU,CAAC,WAAW,CAAQ;gBACzC,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,wBAAe,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,kBAAkB,CAAC;gBAC5D,IAAI,EAAE;oBACJ,OAAO,EAAE,GAAG,CAAC,UAAU,CAAC,OAAO;oBAC/B,UAAU,EAAE,MAAA,GAAG,CAAC,UAAU,CAAC,UAAU,mCAAI,SAAS;iBACnD;aACF,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const telegramUnpinMessageAction: import("@agnocon/pieces-framework").IAction<import("@agnocon/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
+
instructions: import("@agnocon/pieces-framework/dist/lib/property/input/markdown-property").MarkDownProperty;
|
|
3
|
+
chat_id: import("@agnocon/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
message_id: import("@agnocon/pieces-framework").NumberProperty<false>;
|
|
5
|
+
}>;
|
|
6
|
+
//# sourceMappingURL=unpin-message.action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unpin-message.action.d.ts","sourceRoot":"","sources":["../../../src/lib/action/unpin-message.action.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,0BAA0B;;;;EA6BrC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.telegramUnpinMessageAction = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
// Vendored from Activepieces packages/pieces/community/telegram-bot/src/lib/action/unpin-message.action.ts (MIT).
|
|
6
|
+
// Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
|
|
7
|
+
const pieces_framework_1 = require("@agnocon/pieces-framework");
|
|
8
|
+
const pieces_common_1 = require("@agnocon/pieces-common");
|
|
9
|
+
const common_1 = require("../common");
|
|
10
|
+
const __1 = require("../..");
|
|
11
|
+
const output_schemas_1 = require("../output-schemas");
|
|
12
|
+
exports.telegramUnpinMessageAction = (0, pieces_framework_1.createAction)({
|
|
13
|
+
auth: __1.telegramBotAuth,
|
|
14
|
+
name: 'unpin_message',
|
|
15
|
+
displayName: 'Unpin Message',
|
|
16
|
+
description: 'Unpin a message in a chat. Leave Message Id empty to unpin the most recent pinned message.',
|
|
17
|
+
audience: 'human',
|
|
18
|
+
aiMetadata: { description: 'Unpins a message in a chat; supply message_id to unpin a specific message, or leave it empty to unpin the most recent pinned message. The bot must be an administrator with pin rights. Idempotent: a message that is already unpinned stays unpinned.', idempotent: true },
|
|
19
|
+
props: {
|
|
20
|
+
instructions: common_1.telegramCommons.chatIdInstructions(),
|
|
21
|
+
chat_id: common_1.telegramCommons.chatIdProp(),
|
|
22
|
+
message_id: pieces_framework_1.Property.Number({
|
|
23
|
+
displayName: 'Message Id',
|
|
24
|
+
description: 'Identifier of the pinned message to unpin. Leave empty to unpin the most recent pinned message.',
|
|
25
|
+
required: false,
|
|
26
|
+
}),
|
|
27
|
+
},
|
|
28
|
+
outputSchema: output_schemas_1.unpinMessageActionOutputSchema,
|
|
29
|
+
run(ctx) {
|
|
30
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
var _a;
|
|
32
|
+
return yield pieces_common_1.httpClient.sendRequest({
|
|
33
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
34
|
+
url: common_1.telegramCommons.getApiUrl(ctx.auth, 'unpinChatMessage'),
|
|
35
|
+
body: {
|
|
36
|
+
chat_id: ctx.propsValue.chat_id,
|
|
37
|
+
message_id: (_a = ctx.propsValue.message_id) !== null && _a !== void 0 ? _a : undefined,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=unpin-message.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unpin-message.action.js","sourceRoot":"","sources":["../../../src/lib/action/unpin-message.action.ts"],"names":[],"mappings":";;;;AAAA,kHAAkH;AAClH,qEAAqE;AACrE,gEAAmE;AACnE,0DAAgE;AAChE,sCAA4C;AAC5C,6BAAwC;AACxC,sDAAmE;AAEtD,QAAA,0BAA0B,GAAG,IAAA,+BAAY,EAAC;IACrD,IAAI,EAAE,mBAAe;IACrB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EACT,4FAA4F;IAC9F,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,EAAE,WAAW,EAAE,wPAAwP,EAAE,UAAU,EAAE,IAAI,EAAE;IACvS,KAAK,EAAE;QACL,YAAY,EAAE,wBAAe,CAAC,kBAAkB,EAAE;QAClD,OAAO,EAAE,wBAAe,CAAC,UAAU,EAAE;QACrC,UAAU,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC1B,WAAW,EAAE,YAAY;YACzB,WAAW,EACT,iGAAiG;YACnG,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACD,YAAY,EAAE,+CAA8B;IACtC,GAAG,CAAC,GAAG;;;YACX,OAAO,MAAM,0BAAU,CAAC,WAAW,CAAQ;gBACzC,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,wBAAe,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,kBAAkB,CAAC;gBAC5D,IAAI,EAAE;oBACJ,OAAO,EAAE,GAAG,CAAC,UAAU,CAAC,OAAO;oBAC/B,UAAU,EAAE,MAAA,GAAG,CAAC,UAAU,CAAC,UAAU,mCAAI,SAAS;iBACnD;aACF,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { telegramBotAuth } from '../..';
|
|
2
|
+
import { AppConnectionValueForAuthProperty } from '@agnocon/pieces-framework';
|
|
3
|
+
export type SetWebhookRequest = {
|
|
4
|
+
ip_address: string;
|
|
5
|
+
max_connections: number;
|
|
6
|
+
allowed_updates: string[];
|
|
7
|
+
drop_pending_updates: boolean;
|
|
8
|
+
secret_token: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const telegramCommons: {
|
|
11
|
+
getApiUrl: (auth: AppConnectionValueForAuthProperty<typeof telegramBotAuth>, methodName: string) => string;
|
|
12
|
+
subscribeWebhook: (botToken: string, webhookUrl: string, overrides?: Partial<SetWebhookRequest>) => Promise<void>;
|
|
13
|
+
unsubscribeWebhook: (botToken: string) => Promise<import("@agnocon/pieces-common").HttpResponse<any>>;
|
|
14
|
+
chatIdInstructions: () => import("@agnocon/pieces-framework/dist/lib/property/input/markdown-property").MarkDownProperty;
|
|
15
|
+
formatLinkInstructions: () => import("@agnocon/pieces-framework/dist/lib/property/input/markdown-property").MarkDownProperty;
|
|
16
|
+
chatIdProp: () => import("@agnocon/pieces-framework").ShortTextProperty<true>;
|
|
17
|
+
messageThreadIdProp: () => import("@agnocon/pieces-framework").ShortTextProperty<false>;
|
|
18
|
+
parseModeProp: () => import("@agnocon/pieces-framework").StaticDropdownProperty<string, false>;
|
|
19
|
+
replyMarkupProp: () => import("@agnocon/pieces-framework").JsonProperty<false>;
|
|
20
|
+
disableNotificationProp: () => import("@agnocon/pieces-framework").CheckboxProperty<false>;
|
|
21
|
+
protectContentProp: () => import("@agnocon/pieces-framework").CheckboxProperty<false>;
|
|
22
|
+
replyToMessageIdProp: () => import("@agnocon/pieces-framework").NumberProperty<false>;
|
|
23
|
+
resolveParseMode: (value: string | undefined) => string | undefined;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/common/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACL,iCAAiC,EAElC,MAAM,2BAA2B,CAAC;AA2FnC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe;sBACR,iCAAiC,CAAC,OAAO,eAAe,CAAC,cAAc,MAAM;iCAInF,MAAM,cACJ,MAAM,cACN,OAAO,CAAC,iBAAiB,CAAC;mCAcH,MAAM;;;;;;;;;;8BApCZ,MAAM,GAAG,SAAS,KAAG,MAAM,GAAG,SAAS;CAqDvE,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.telegramCommons = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
// Vendored from Activepieces packages/pieces/community/telegram-bot/src/lib/common/index.ts (MIT).
|
|
6
|
+
// Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
|
|
7
|
+
const pieces_common_1 = require("@agnocon/pieces-common");
|
|
8
|
+
const pieces_framework_1 = require("@agnocon/pieces-framework");
|
|
9
|
+
const chatIdInstructions = `
|
|
10
|
+
**How to obtain Chat ID:**
|
|
11
|
+
1. Search for the bot "@getmyid_bot" in Telegram.
|
|
12
|
+
2. Start a conversation with the bot.
|
|
13
|
+
3. Send the command "/my_id" to the bot.
|
|
14
|
+
4. The bot will reply with your chat ID.
|
|
15
|
+
|
|
16
|
+
**Note: Remember to initiate the chat with the bot, or you'll get an error for "chat not found."**
|
|
17
|
+
`;
|
|
18
|
+
const formatLinkMarkdown = `
|
|
19
|
+
[Formatting options](https://core.telegram.org/bots/api#formatting-options)
|
|
20
|
+
`;
|
|
21
|
+
const buildChatIdInstructions = () => pieces_framework_1.Property.MarkDown({ value: chatIdInstructions });
|
|
22
|
+
const buildFormatLinkInstructions = () => pieces_framework_1.Property.MarkDown({ value: formatLinkMarkdown });
|
|
23
|
+
const buildChatIdProp = () => pieces_framework_1.Property.ShortText({
|
|
24
|
+
displayName: 'Chat Id',
|
|
25
|
+
description: 'Unique identifier for the target chat or username of the target channel (e.g. @channelusername).',
|
|
26
|
+
required: true,
|
|
27
|
+
});
|
|
28
|
+
const buildMessageThreadIdProp = () => pieces_framework_1.Property.ShortText({
|
|
29
|
+
displayName: 'Message Thread Id',
|
|
30
|
+
description: 'Unique identifier for the target message thread of the forum; supergroup forums only.',
|
|
31
|
+
required: false,
|
|
32
|
+
});
|
|
33
|
+
const buildParseModeProp = () => pieces_framework_1.Property.StaticDropdown({
|
|
34
|
+
displayName: 'Format',
|
|
35
|
+
description: 'How the message text should be parsed by Telegram.',
|
|
36
|
+
required: false,
|
|
37
|
+
options: {
|
|
38
|
+
options: [
|
|
39
|
+
{ label: 'Markdown (V2)', value: 'MarkdownV2' },
|
|
40
|
+
{ label: 'HTML', value: 'HTML' },
|
|
41
|
+
{ label: 'Plain Text', value: 'None' },
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
defaultValue: 'MarkdownV2',
|
|
45
|
+
});
|
|
46
|
+
const buildReplyMarkupProp = () => pieces_framework_1.Property.Json({
|
|
47
|
+
required: false,
|
|
48
|
+
displayName: 'Reply Markup',
|
|
49
|
+
description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.',
|
|
50
|
+
});
|
|
51
|
+
const buildDisableNotificationProp = () => pieces_framework_1.Property.Checkbox({
|
|
52
|
+
displayName: 'Disable Notification',
|
|
53
|
+
description: 'Send the message silently. Users will receive a notification with no sound.',
|
|
54
|
+
required: false,
|
|
55
|
+
defaultValue: false,
|
|
56
|
+
});
|
|
57
|
+
const buildProtectContentProp = () => pieces_framework_1.Property.Checkbox({
|
|
58
|
+
displayName: 'Protect Content',
|
|
59
|
+
description: 'Protects the contents of the sent message from forwarding and saving.',
|
|
60
|
+
required: false,
|
|
61
|
+
defaultValue: false,
|
|
62
|
+
});
|
|
63
|
+
const buildReplyToMessageIdProp = () => pieces_framework_1.Property.Number({
|
|
64
|
+
displayName: 'Reply To Message Id',
|
|
65
|
+
description: 'If the message is a reply, ID of the original message.',
|
|
66
|
+
required: false,
|
|
67
|
+
});
|
|
68
|
+
const resolveParseMode = (value) => {
|
|
69
|
+
if (!value || value === 'None') {
|
|
70
|
+
return undefined;
|
|
71
|
+
}
|
|
72
|
+
return value;
|
|
73
|
+
};
|
|
74
|
+
exports.telegramCommons = {
|
|
75
|
+
getApiUrl: (auth, methodName) => {
|
|
76
|
+
return `https://api.telegram.org/bot${auth.secret_text}/${methodName}`;
|
|
77
|
+
},
|
|
78
|
+
subscribeWebhook: (botToken, webhookUrl, overrides) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
79
|
+
const request = {
|
|
80
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
81
|
+
url: `https://api.telegram.org/bot${botToken}/setWebhook`,
|
|
82
|
+
body: Object.assign({ allowed_updates: [], url: webhookUrl }, overrides),
|
|
83
|
+
};
|
|
84
|
+
yield pieces_common_1.httpClient.sendRequest(request);
|
|
85
|
+
}),
|
|
86
|
+
unsubscribeWebhook: (botToken) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
87
|
+
const request = {
|
|
88
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
89
|
+
url: `https://api.telegram.org/bot${botToken}/deleteWebhook`,
|
|
90
|
+
};
|
|
91
|
+
return yield pieces_common_1.httpClient.sendRequest(request);
|
|
92
|
+
}),
|
|
93
|
+
chatIdInstructions: buildChatIdInstructions,
|
|
94
|
+
formatLinkInstructions: buildFormatLinkInstructions,
|
|
95
|
+
chatIdProp: buildChatIdProp,
|
|
96
|
+
messageThreadIdProp: buildMessageThreadIdProp,
|
|
97
|
+
parseModeProp: buildParseModeProp,
|
|
98
|
+
replyMarkupProp: buildReplyMarkupProp,
|
|
99
|
+
disableNotificationProp: buildDisableNotificationProp,
|
|
100
|
+
protectContentProp: buildProtectContentProp,
|
|
101
|
+
replyToMessageIdProp: buildReplyToMessageIdProp,
|
|
102
|
+
resolveParseMode,
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/common/index.ts"],"names":[],"mappings":";;;;AAAA,mGAAmG;AACnG,qEAAqE;AACrE,0DAIgC;AAEhC,gEAGmC;AAEnC,MAAM,kBAAkB,GAAG;;;;;;;;CAQ1B,CAAC;AAEF,MAAM,kBAAkB,GAAG;;CAE1B,CAAC;AAEF,MAAM,uBAAuB,GAAG,GAAG,EAAE,CACnC,2BAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;AAEnD,MAAM,2BAA2B,GAAG,GAAG,EAAE,CACvC,2BAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;AAEnD,MAAM,eAAe,GAAG,GAAG,EAAE,CAC3B,2BAAQ,CAAC,SAAS,CAAC;IACjB,WAAW,EAAE,SAAS;IACtB,WAAW,EACT,kGAAkG;IACpG,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEL,MAAM,wBAAwB,GAAG,GAAG,EAAE,CACpC,2BAAQ,CAAC,SAAS,CAAC;IACjB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EACT,uFAAuF;IACzF,QAAQ,EAAE,KAAK;CAChB,CAAC,CAAC;AAEL,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAC9B,2BAAQ,CAAC,cAAc,CAAC;IACtB,WAAW,EAAE,QAAQ;IACrB,WAAW,EAAE,oDAAoD;IACjE,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE;QACP,OAAO,EAAE;YACP,EAAE,KA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,CAAC,WAAW,IAAI,UAAU,EAAE,CAAC;IACzE,CAAC;IACD,gBAAgB,EAAE,CAChB,QAAgB,EAChB,UAAkB,EAClB,SAAsC,EACtC,EAAE;QACF,MAAM,OAAO,GAAgB;YAC3B,MAAM,EAAE,0BAAU,CAAC,IAAI;YACvB,GAAG,EAAE,+BAA+B,QAAQ,aAAa;YACzD,IAAI,kBACF,eAAe,EAAE,EAAE,EACnB,GAAG,EAAE,UAAU,IACZ,SAAS,CACb;SACF,CAAC;QAEF,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC,CAAA;IACD,kBAAkB,EAAE,CAAO,QAAgB,EAAE,EAAE;QAC7C,MAAM,OAAO,GAAgB;YAC3B,MAAM,EAAE,0BAAU,CAAC,GAAG;YACtB,GAAG,EAAE,+BAA+B,QAAQ,gBAAgB;SAC7D,CAAC;QACF,OAAO,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC,CAAA;IACD,kBAAkB,EAAE,uBAAuB;IAC3C,sBAAsB,EAAE,2BAA2B;IACnD,UAAU,EAAE,eAAe;IAC3B,mBAAmB,EAAE,wBAAwB;IAC7C,aAAa,EAAE,kBAAkB;IACjC,eAAe,EAAE,oBAAoB;IACrC,uBAAuB,EAAE,4BAA4B;IACrD,kBAAkB,EAAE,uBAAuB;IAC3C,oBAAoB,EAAE,yBAAyB;IAC/C,gBAAgB;CACjB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { OutputSchema } from '@agnocon/pieces-framework';
|
|
2
|
+
export declare const telegramSendMessageActionOutputSchema: OutputSchema;
|
|
3
|
+
export declare const telegramSendPhotoOrVideoActionOutputSchema: OutputSchema;
|
|
4
|
+
export declare const telegramSendAudioActionOutputSchema: OutputSchema;
|
|
5
|
+
export declare const telegramSendDocumentActionOutputSchema: OutputSchema;
|
|
6
|
+
export declare const telegramSendLocationActionOutputSchema: OutputSchema;
|
|
7
|
+
export declare const telegramSendMediaGroupActionOutputSchema: OutputSchema;
|
|
8
|
+
export declare const telegramSendPollActionOutputSchema: OutputSchema;
|
|
9
|
+
export declare const telegramSendChatActionActionOutputSchema: OutputSchema;
|
|
10
|
+
export declare const telegramDeleteMessageActionOutputSchema: OutputSchema;
|
|
11
|
+
export declare const telegramPinMessageActionOutputSchema: OutputSchema;
|
|
12
|
+
export declare const telegramUnpinMessageActionOutputSchema: OutputSchema;
|
|
13
|
+
export declare const telegramGetChatActionOutputSchema: OutputSchema;
|
|
14
|
+
export declare const telegramGetChatMemberActionOutputSchema: OutputSchema;
|
|
15
|
+
export declare const telegramGetChatAdministratorsActionOutputSchema: OutputSchema;
|
|
16
|
+
export declare const telegramGetChatMemberCountActionOutputSchema: OutputSchema;
|
|
17
|
+
export declare const telegramGetBotInfoActionOutputSchema: OutputSchema;
|
|
18
|
+
export declare const telegramGetFileActionOutputSchema: OutputSchema;
|
|
19
|
+
export declare const telegramForwardMessageActionOutputSchema: OutputSchema;
|
|
20
|
+
export declare const telegramEditMessageTextActionOutputSchema: OutputSchema;
|
|
21
|
+
export declare const telegramCreateInviteLinkActionOutputSchema: OutputSchema;
|
|
22
|
+
export declare const telegramAnswerCallbackQueryActionOutputSchema: OutputSchema;
|
|
23
|
+
export declare const sendTextMessageActionOutputSchema: OutputSchema;
|
|
24
|
+
export declare const sendLocationActionOutputSchema: OutputSchema;
|
|
25
|
+
export declare const sendMediaGroupActionOutputSchema: OutputSchema;
|
|
26
|
+
export declare const sendPollActionOutputSchema: OutputSchema;
|
|
27
|
+
export declare const sendChatActionActionOutputSchema: OutputSchema;
|
|
28
|
+
export declare const deleteMessageActionOutputSchema: OutputSchema;
|
|
29
|
+
export declare const getChatActionOutputSchema: OutputSchema;
|
|
30
|
+
export declare const getChatMemberActionOutputSchema: OutputSchema;
|
|
31
|
+
export declare const pinMessageActionOutputSchema: OutputSchema;
|
|
32
|
+
export declare const unpinMessageActionOutputSchema: OutputSchema;
|
|
33
|
+
export declare const sendMediaActionOutputSchema: OutputSchema;
|
|
34
|
+
export declare const sendDocumentActionOutputSchema: OutputSchema;
|
|
35
|
+
export declare const sendAudioActionOutputSchema: OutputSchema;
|
|
36
|
+
export declare const requestApprovalMessageActionOutputSchema: OutputSchema;
|
|
37
|
+
export declare const getFileActionOutputSchema: OutputSchema;
|
|
38
|
+
export declare const forwardMessageActionOutputSchema: OutputSchema;
|
|
39
|
+
export declare const editMessageTextActionOutputSchema: OutputSchema;
|
|
40
|
+
export declare const createInviteLinkActionOutputSchema: OutputSchema;
|
|
41
|
+
//# sourceMappingURL=output-schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-schemas.d.ts","sourceRoot":"","sources":["../../src/lib/output-schemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AA8EzD,eAAO,MAAM,qCAAqC,EAAE,YAUnD,CAAC;AAEF,eAAO,MAAM,0CAA0C,EAAE,YA6BxD,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,YAWjD,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,YAgBpD,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,YAepD,CAAC;AA+CF,eAAO,MAAM,wCAAwC,EAAE,YAWtD,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,YAUhD,CAAC;AAEF,eAAO,MAAM,wCAAwC,EAAE,YAEtD,CAAC;AAEF,eAAO,MAAM,uCAAuC,EAAE,YAErD,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,YAElD,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,YAEpD,CAAC;AAaF,eAAO,MAAM,iCAAiC,EAAE,YAK/C,CAAC;AAuBF,eAAO,MAAM,uCAAuC,EAAE,YAKrD,CAAC;AAEF,eAAO,MAAM,+CAA+C,EAAE,YAW7D,CAAC;AAEF,eAAO,MAAM,4CAA4C,EAAE,YAK1D,CAA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