Fix bug in search query

This commit is contained in:
2022-01-08 19:44:39 +03:00
parent 30c107d222
commit 476471b39a

View File

@@ -255,7 +255,7 @@ export async function createApprovedBot(token: string, state: BotState): Promise
return; return;
} }
const query = ctx.message.text.substring(0, 64 - 7); const query = ctx.message.text.replaceAll("_", " ").substring(0, 64 - 7).toLowerCase();
let keyboard = Markup.inlineKeyboard([ let keyboard = Markup.inlineKeyboard([
[ [