telegram-claude-mcp 1.2.1 → 1.2.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/package.json +1 -1
  2. package/src/telegram.ts +3 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telegram-claude-mcp",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
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/telegram.ts CHANGED
@@ -192,18 +192,10 @@ export class TelegramManager {
192
192
 
193
193
  const message = `🔐 [${this.config.sessionName}] Permission Request\n\nTool: ${toolName}\n${inputDisplay}`;
194
194
 
195
- const sent = await this.bot.sendMessage(this.config.chatId, message, {
196
- reply_markup: {
197
- inline_keyboard: [
198
- [
199
- { text: '✅ Allow', callback_data: `allow:${sent?.message_id || 'pending'}` },
200
- { text: '❌ Deny', callback_data: `deny:${sent?.message_id || 'pending'}` },
201
- ],
202
- ],
203
- },
204
- });
195
+ // Send message first without inline keyboard
196
+ const sent = await this.bot.sendMessage(this.config.chatId, message);
205
197
 
206
- // Update callback_data with actual message ID
198
+ // Then add the inline keyboard with the correct message ID
207
199
  await this.bot.editMessageReplyMarkup(
208
200
  {
209
201
  inline_keyboard: [