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); const keyboard = await getUserAllowedLangsKeyboard(user.id);
try { try {
ctx.editMessageReplyMarkup(keyboard.reply_markup); await ctx.editMessageReplyMarkup(keyboard.reply_markup);
} catch {} } catch {}
}); });
} }

View File

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

View File

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

View File

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

View File

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