telegram-claude-mcp 1.2.3 → 1.2.4

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/package.json +1 -1
  2. package/src/index.ts +8 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telegram-claude-mcp",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "MCP server that lets Claude message you on Telegram with hooks support",
5
5
  "author": "Geravant",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -153,14 +153,18 @@ async function main() {
153
153
  tool_input || {}
154
154
  );
155
155
 
156
+ const responseDecision: Record<string, unknown> = {
157
+ behavior: decision.behavior,
158
+ };
159
+ if (decision.message) {
160
+ responseDecision.message = decision.message;
161
+ }
162
+
156
163
  res.writeHead(200, { 'Content-Type': 'application/json' });
157
164
  res.end(JSON.stringify({
158
165
  hookSpecificOutput: {
159
166
  hookEventName: 'PermissionRequest',
160
- decision: {
161
- behavior: decision.behavior,
162
- message: decision.message,
163
- },
167
+ decision: responseDecision,
164
168
  },
165
169
  }));
166
170
  return;