From 6d3696d261afa5cedc2c8ab93494fd3ea5b9f6ce Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 29 Jul 2026 15:08:23 +0700 Subject: [PATCH] fix: handler.ts uses config.botTokens[0] instead of removed config.botToken --- src/interfaces/bot/handler.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/interfaces/bot/handler.ts b/src/interfaces/bot/handler.ts index a7000b4..488dabd 100644 --- a/src/interfaces/bot/handler.ts +++ b/src/interfaces/bot/handler.ts @@ -92,7 +92,7 @@ export async function startBot( const fileRepo = deps.fileRepo ?? new DrizzleFileRepository(); try { - const bot = new Telegraf(config.botToken); + const bot = new Telegraf(config.botTokens[0]); bot.command('start', async (ctx) => { await ctx.reply( @@ -197,7 +197,9 @@ export async function startBot( await bot.launch(); - logger.info('Telegram bot started', { botToken: `${config.botToken?.substring(0, 10)}...` }); + logger.info('Telegram bot started', { + botToken: `${config.botTokens[0]?.substring(0, 10)}...`, + }); return bot; } catch (error: unknown) {