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);
|
const keyboard = await getUserAllowedLangsKeyboard(user.id);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ctx.editMessageReplyMarkup(keyboard.reply_markup);
|
await ctx.editMessageReplyMarkup(keyboard.reply_markup);
|
||||||
} catch {}
|
} catch {}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user