Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review: answer callback query for unauthorized telegram users

Adam Eivyda6ff50cafdf
diff --git a/server/services/telegram.js b/server/services/telegram.js
index d88dcf6020..52c68cd12f 100644
--- a/server/services/telegram.js
+++ b/server/services/telegram.js
@@ -184,7 +184,10 @@ export async function init(sendTestMessage = false) {
// Handle inline keyboard button clicks (memory approve/reject)
bot.on('callback_query', async (query) => {
- if (String(query.message?.chat?.id) !== authorizedChatId) return;
+ if (String(query.message?.chat?.id) !== authorizedChatId) {
+ await bot.answerCallbackQuery(query.id, { text: 'Unauthorized' }).catch(() => {});
+ return;
+ }
await handleCallbackQuery(query);
});