@zerodot/telegram 1.1.0 → 1.1.1

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/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @zerodot/telegram
2
+
3
+ Send messages and files with a Telegram bot, and start a workflow when the bot gets a message or other update. Use it to build chat bots and notifications.
4
+
5
+ ## Install
6
+
7
+ In zerodot, go to **System > Nodes** and install **Telegram**.
8
+
9
+ Manual: install `@zerodot/telegram` where the web app and the worker run, and add it to `ZERODOT_NODE_PACKAGES`.
10
+
11
+ ## Nodes
12
+
13
+ ### Telegram (`telegram.bot`)
14
+
15
+ - **Message**: send, edit, delete, pin, unpin, send a chat action
16
+ - **Media**: send a photo, video, audio file, document, animation, sticker, location, or media group
17
+ - **Wait for response**: send a message and wait for an approval, a free text, or a form
18
+ - **Chat**: get information, get the administrators, get a member, leave, set the title, set the description
19
+ - **Callback and inline query**: answer
20
+ - **File**: get a file, and download it to binary data
21
+
22
+ Messages can have inline keyboards and reply keyboards. Files can come from a URL, a `file_id`, or binary data of the input.
23
+
24
+ ### Telegram Trigger (`trigger.telegram`)
25
+
26
+ Starts a run on a bot update, for example a message, a callback query, or an inline query. You can accept updates only from some chats or users. The trigger sets the webhook of the bot, so Telegram must be able to reach your zerodot instance. A bot has one webhook only.
27
+
28
+ ## Credential
29
+
30
+ **Telegram bot** (`telegram.bot`): `accessToken` from [@BotFather](https://t.me/BotFather), and an optional `baseUrl` for a local Bot API server. The token is secret.
31
+
32
+ ## License
33
+
34
+ AGPL-3.0-only
package/dist/index.cjs CHANGED
@@ -56,7 +56,7 @@ const telegramCredential = {
56
56
  baseUrl: zod.z.url().optional().meta({ placeholder: "https://api.telegram.org" })
57
57
  }),
58
58
  secretFields: ["accessToken"],
59
- icon: "Send",
59
+ icon: "SentIcon",
60
60
  iconUrl: TELEGRAM_ICON,
61
61
  async test({ data }) {
62
62
  const token = text(data.accessToken);
@@ -904,7 +904,7 @@ var node_default = (0, _zerodot_node_sdk.defineNode)({
904
904
  }
905
905
  }
906
906
  ],
907
- icon: "Send",
907
+ icon: "SentIcon",
908
908
  iconUrl: TELEGRAM_ICON,
909
909
  config: telegramConfig,
910
910
  defaultConfig: {
@@ -1112,7 +1112,7 @@ const nodes = [(0, _zerodot_node_sdk.defineNode)({
1112
1112
  description: "Start the workflow on a Telegram bot update",
1113
1113
  category: "trigger",
1114
1114
  app: "Telegram",
1115
- icon: "Send",
1115
+ icon: "SentIcon",
1116
1116
  iconUrl: TELEGRAM_ICON,
1117
1117
  config: triggerConfig,
1118
1118
  defaultConfig: {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@zerodot/telegram",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Send messages and files with a Telegram bot, and start a workflow when the bot gets a message or other update. Use it to build chat bots and notifications.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/zerodot-io/zerodot-nodes.git",
8
+ "url": "git+https://github.com/zerodot-io/nodes.git",
9
9
  "directory": "packages/telegram"
10
10
  },
11
11
  "keywords": [
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "26.6.5",
38
- "@zerodot/node-sdk": "^1.2.0",
38
+ "@zerodot/node-sdk": "^1.2.1",
39
39
  "tsdown": "0.23.2",
40
40
  "tsx": "4.23.15",
41
41
  "typescript": "7.0.2",