diff --git a/src/app.ts b/src/app.ts index 32d53bd..7f687d5 100644 --- a/src/app.ts +++ b/src/app.ts @@ -18,7 +18,7 @@ import { initDb } from "./db/initDb"; import loggingMiddleware from "./middlewares/loggingMiddleware"; import notifyUserCron from "./cron/notifyUserCron"; import { - inlineQueryResltHandler, + inlineQueryResultHandler, searchInlineQueryHandler, } from "./handlers/searchInlineQueryHandler"; @@ -46,7 +46,7 @@ bot.command("subscribe", async (ctx) => await subscribe(ctx, db)); bot.command("unsubscribe", async (ctx) => await unsubscribe(ctx, db)); bot.on("inline_query", async (ctx) => await searchInlineQueryHandler(ctx)); bot.on("chosen_inline_result", async (ctx) => { - await inlineQueryResltHandler(ctx.chosenInlineResult, bot); + await inlineQueryResultHandler(ctx.chosenInlineResult, bot); }); bot.on("message", async (ctx) => await defaultHandler(ctx)); diff --git a/src/handlers/searchInlineQueryHandler.ts b/src/handlers/searchInlineQueryHandler.ts index 6d7f082..1bf5c6c 100644 --- a/src/handlers/searchInlineQueryHandler.ts +++ b/src/handlers/searchInlineQueryHandler.ts @@ -34,7 +34,7 @@ async function searchInlineQueryHandler(ctx: CustomContext) { await ctx.answerInlineQuery(results); } -async function inlineQueryResltHandler( +async function inlineQueryResultHandler( chosenInlineResult: ChosenInlineResult, bot: Telegraf, ) { @@ -71,4 +71,4 @@ async function inlineQueryResltHandler( } catch (error) {} } -export { searchInlineQueryHandler, inlineQueryResltHandler }; +export { searchInlineQueryHandler, inlineQueryResultHandler };