fix: handler.ts uses config.botTokens[0] instead of removed config.botToken
Deploy FileDrop / deploy (push) Successful in 27s
Deploy FileDrop / deploy (push) Successful in 27s
This commit is contained in:
@@ -92,7 +92,7 @@ export async function startBot(
|
|||||||
const fileRepo = deps.fileRepo ?? new DrizzleFileRepository();
|
const fileRepo = deps.fileRepo ?? new DrizzleFileRepository();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const bot = new Telegraf(config.botToken);
|
const bot = new Telegraf(config.botTokens[0]);
|
||||||
|
|
||||||
bot.command('start', async (ctx) => {
|
bot.command('start', async (ctx) => {
|
||||||
await ctx.reply(
|
await ctx.reply(
|
||||||
@@ -197,7 +197,9 @@ export async function startBot(
|
|||||||
|
|
||||||
await bot.launch();
|
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;
|
return bot;
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
|
|||||||
Reference in New Issue
Block a user