Skip to content

Commit

Permalink
Fix typo in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
devadathanmb committed Nov 10, 2023
1 parent 602d05f commit 7bcfffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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));

Expand Down
4 changes: 2 additions & 2 deletions src/handlers/searchInlineQueryHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function searchInlineQueryHandler(ctx: CustomContext) {
await ctx.answerInlineQuery(results);
}

async function inlineQueryResltHandler(
async function inlineQueryResultHandler(
chosenInlineResult: ChosenInlineResult,
bot: Telegraf<CustomContext>,
) {
Expand Down Expand Up @@ -71,4 +71,4 @@ async function inlineQueryResltHandler(
} catch (error) {}
}

export { searchInlineQueryHandler, inlineQueryResltHandler };
export { searchInlineQueryHandler, inlineQueryResultHandler };

0 comments on commit 7bcfffb

Please sign in to comment.