Fix imports

This commit is contained in:
2022-03-02 21:20:45 +03:00
parent cd43668aa7
commit 4045eb3bc4
5 changed files with 5 additions and 8 deletions

View File

@@ -167,7 +167,7 @@ export function registerLanguageSettingsCallback(
const keyboard = await getUserAllowedLangsKeyboard(user.id);
try {
ctx.editMessageReplyMarkup(keyboard.reply_markup);
await ctx.editMessageReplyMarkup(keyboard.reply_markup);
} catch {}
});
}

View File

@@ -1,6 +1,6 @@
import { Telegraf, Context } from 'telegraf';
import { BotState } from '@/bots/manager';
import { BotState } from '@/bots/manager/types';
import env from '@/config';

View File

@@ -1,6 +1,6 @@
import { Telegraf, Context } from 'telegraf';
import { BotState } from '@/bots/manager';
import { BotState } from '@/bots/manager/types';
import env from '@/config';

View File

@@ -1,6 +1,6 @@
import { Telegraf } from "telegraf";
import { BotState } from '@/bots/manager';
import { BotState } from '@/bots/manager/types';
import { createPendingBot } from './bots/pending';
import { createBlockedBot } from './bots/blocked';

View File

@@ -70,16 +70,13 @@ export default class BotsManager {
const oldBot = new Telegraf(state.token);
await oldBot.telegram.deleteWebhook();
await oldBot.telegram.logOut();
} catch (e) {
// Sentry.captureException(e);
}
} catch (e) {}
let bot: Telegraf;
try {
bot = await getBot(state.token, state);
} catch (e) {
// Sentry.captureException(e);
return;
}