@dreb/telegram 1.16.0 → 2.0.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/README.md +18 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,16 +39,31 @@ chmod 600 ~/.dreb/secrets/telegram.env
|
|
|
39
39
|
|
|
40
40
|
This file is gitignored. Explicit environment variables take priority over the file.
|
|
41
41
|
|
|
42
|
-
### 5.
|
|
42
|
+
### 5. Install and run
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm install -g @dreb/telegram
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Set up your secrets (see step 4), then run:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
dreb-telegram
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
The bot auto-loads secrets from `~/.dreb/secrets/telegram.env`.
|
|
55
|
+
|
|
56
|
+
<details>
|
|
57
|
+
<summary>Building from source</summary>
|
|
43
58
|
|
|
44
59
|
```bash
|
|
45
60
|
# From the monorepo root
|
|
46
61
|
npm run build
|
|
47
|
-
|
|
48
|
-
# Run directly (auto-loads secrets from ~/.dreb/secrets/telegram.env)
|
|
49
62
|
node packages/telegram/dist/index.js
|
|
50
63
|
```
|
|
51
64
|
|
|
65
|
+
</details>
|
|
66
|
+
|
|
52
67
|
### 6. Systemd service (recommended)
|
|
53
68
|
|
|
54
69
|
```bash
|