fix: handler.ts uses config.botTokens[0] instead of removed config.botToken
Deploy FileDrop / deploy (push) Successful in 27s

This commit is contained in:
Claude
2026-07-29 15:08:23 +07:00
parent 1484d5265d
commit 6d3696d261
+4 -2
View File
@@ -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) {