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.
- package/package.json +1 -1
- package/src/telegram.ts +3 -11
package/package.json
CHANGED
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
|
-
|
|
196
|
-
|
|
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
|
-
//
|
|
198
|
+
// Then add the inline keyboard with the correct message ID
|
|
207
199
|
await this.bot.editMessageReplyMarkup(
|
|
208
200
|
{
|
|
209
201
|
inline_keyboard: [
|