@tb-eng/sendkit 0.0.1 → 0.0.2

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.
Files changed (2) hide show
  1. package/Readme.md +89 -0
  2. package/package.json +1 -1
package/Readme.md ADDED
@@ -0,0 +1,89 @@
1
+ # @tb-eng/sendkit
2
+
3
+ CLI for sending Telegram messages.
4
+
5
+ SendKit lets you send Telegram messages directly from your terminal.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install -g @tb-eng/sendkit
11
+ ```
12
+
13
+ Or run without installation:
14
+
15
+ ```bash
16
+ npx @tb-eng/sendkit
17
+ ```
18
+
19
+ ## Setup
20
+
21
+ Configure your Telegram bot token once:
22
+
23
+ ```bash
24
+ sendkit init --telegram-bot-token <botToken>
25
+ ```
26
+
27
+ The token is stored locally in:
28
+
29
+ ```txt
30
+ ~/.config/sendkit/config.json
31
+ ```
32
+
33
+ ## Send a message
34
+
35
+ ```bash
36
+ sendkit telegram <chatId> <message>
37
+ ```
38
+
39
+ Example:
40
+
41
+ ```bash
42
+ sendkit telegram 123456789 "Hello from SendKit 🚀"
43
+ ```
44
+
45
+ Response:
46
+
47
+ ```json
48
+ {
49
+ "ok": true,
50
+ "chatId": "123456789",
51
+ "messageId": 42
52
+ }
53
+ ```
54
+
55
+ ## Commands
56
+
57
+ ### Initialize configuration
58
+
59
+ ```bash
60
+ sendkit init --telegram-bot-token <botToken>
61
+ ```
62
+
63
+ ### Send Telegram message
64
+
65
+ ```bash
66
+ sendkit telegram <chatId> <message>
67
+ ```
68
+
69
+ ## Troubleshooting
70
+
71
+ ### Telegram bot token is required
72
+
73
+ Run:
74
+
75
+ ```bash
76
+ sendkit init --telegram-bot-token <botToken>
77
+ ```
78
+
79
+ ### Chat not found
80
+
81
+ Ensure:
82
+
83
+ * The chat ID is correct.
84
+ * The user has started the bot.
85
+ * The bot has permission to send messages.
86
+
87
+ ## License
88
+
89
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-eng/sendkit",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "sendkit": "./dist/index.js"