diff --git a/supabase/functions/ai-koshey/index.ts b/supabase/functions/ai-koshey/index.ts index 98cf5c1..d3c1f02 100644 --- a/supabase/functions/ai-koshey/index.ts +++ b/supabase/functions/ai-koshey/index.ts @@ -1000,7 +1000,7 @@ botAiKoshey.command("language", async (ctx) => { if (!ctx.from) throw new Error("User not found"); const { user } = await checkAndReturnUser(ctx.from?.id.toString()); const lang = await isRu(ctx) - user && ctx.reply(lang ? "🌏 Выберите язык" : "🌏 Select language", { + user && await ctx.reply(lang ? "🌏 Выберите язык" : "🌏 Select language", { reply_markup: { inline_keyboard: [ [{ text: lang ? "🇷🇺 Русский" : "🇷🇺 Russian", callback_data: "select_russian" }], diff --git a/supabase/functions/javascript-dev/index.ts b/supabase/functions/javascript-dev/index.ts index c60c4ab..1ffc5ed 100644 --- a/supabase/functions/javascript-dev/index.ts +++ b/supabase/functions/javascript-dev/index.ts @@ -103,7 +103,7 @@ javaScriptDevBot.command("language", async (ctx) => { if (!ctx.from) throw new Error("User not found"); const { user } = await checkAndReturnUser(ctx.from?.id.toString()); const isRu = await getLanguage(ctx.from?.id.toString()) === "russian"; - user && ctx.reply(isRu ? "🌏 Выберите язык" : "🌏 Select language", { + user && await ctx.reply(isRu ? "🌏 Выберите язык" : "🌏 Select language", { reply_markup: { inline_keyboard: [ [{ text: isRu ? "🇷🇺 Русский" : "🇷🇺 Russian", callback_data: "select_russian" }], diff --git a/supabase/functions/neuro-calls/index.ts b/supabase/functions/neuro-calls/index.ts index 2bab914..9fa9ff5 100644 --- a/supabase/functions/neuro-calls/index.ts +++ b/supabase/functions/neuro-calls/index.ts @@ -570,7 +570,7 @@ botNeuroCalls.command("language", async (ctx) => { if (!ctx.from) throw new Error("User not found"); const { user } = await checkAndReturnUser(ctx.from?.id.toString()); const lang = await isRu(ctx) - user && ctx.reply(lang ? "🌏 Выберите язык" : "🌏 Select language", { + user && await ctx.reply(lang ? "🌏 Выберите язык" : "🌏 Select language", { reply_markup: { inline_keyboard: [ [{ text: lang ? "🇷🇺 Русский" : "🇷🇺 Russian", callback_data: "select_russian" }],