Skip to content

Commit

Permalink
little fix
Browse files Browse the repository at this point in the history
  • Loading branch information
katsuhira02 committed Aug 14, 2024
1 parent 51539c3 commit a4c4ab8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion supabase/functions/ai-koshey/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }],
Expand Down
2 changes: 1 addition & 1 deletion supabase/functions/javascript-dev/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }],
Expand Down
2 changes: 1 addition & 1 deletion supabase/functions/neuro-calls/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }],
Expand Down

0 comments on commit a4c4ab8

Please sign in to comment.