Skip to content

Commit

Permalink
Prioritize HTML parse
Browse files Browse the repository at this point in the history
  • Loading branch information
EVMlord committed Nov 5, 2024
1 parent f019a8b commit 414f0f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export const projectUsername = process.env.PROJECT_USERNAME || "";

async function initBot() {
try {
// Configure bot to parse HTML in messages
bot.api.config.use(parseMode("HTML"));

// Setup database first
await setupDatabase();
logger.info("Database initialized and models synced successfully.");
Expand All @@ -26,9 +29,6 @@ async function initBot() {
// Register bot commands
await setupBotCommands(bot);

// Configure bot to parse HTML in messages
bot.api.config.use(parseMode("HTML"));

// Conditionally start bot with long polling in development
if (process.env.NODE_ENV === "development") {
await bot.start({
Expand Down

0 comments on commit 414f0f6

Please sign in to comment.