Personal Telegram developer console for GitHub

security: fail closed when Telegram bot token is missing

davoodmehraban89 committed Oct 2, 2026 at 22:48 UTC 81a9bd73d628e3bd69473594ecbcd99d1dfdb2ef
1 file changed +1 -1
src/telegram.js
+1 -1
@@ -7,7 +7,7 @@ export class TelegramClient {
7
8 async callApi(method, payload) {
9 if (!this.botToken) {
10 - return { ok: true, result: { message_id: 1001, ...payload } };
10 + throw new Error('TELEGRAM_BOT_TOKEN is not configured');
11 }
12
13 let response;