mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix imports
This commit is contained in:
@@ -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 {}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Telegraf, Context } from 'telegraf';
|
||||
|
||||
import { BotState } from '@/bots/manager';
|
||||
import { BotState } from '@/bots/manager/types';
|
||||
|
||||
import env from '@/config';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Telegraf, Context } from 'telegraf';
|
||||
|
||||
import { BotState } from '@/bots/manager';
|
||||
import { BotState } from '@/bots/manager/types';
|
||||
|
||||
import env from '@/config';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user