Skip to content

Commit

Permalink
omit the default parse mode for the bot
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Oct 5, 2024
1 parent 4567ae2 commit f23d850
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions telebot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if TELEBOT_TOKEN is None or NOVEL_URL is None:
print("Environment variables not fulfilled")

bot = telebot.TeleBot(TELEBOT_TOKEN, parse_mode="MarkdownV2")
bot = telebot.TeleBot(TELEBOT_TOKEN)

commands = [
telebot.types.BotCommand("info", "Get server usage status"),
Expand Down Expand Up @@ -138,17 +138,17 @@ def restore():

@bot.message_handler(commands=["info"])
def handle_info_command(message):
bot.reply_to(message, dockerUsage())
bot.reply_to(message, dockerUsage(), parse_mode="MarkdownV2")


@bot.message_handler(commands=["novel"])
def handle_novel_update_command(message):
bot.reply_to(message, novelUpdate(), parse_mode=None)
bot.reply_to(message, novelUpdate())


@bot.message_handler(commands=["restore"])
def handle_container_restore_command(message):
bot.reply_to(message, restore())
bot.reply_to(message, restore(), parse_mode="MarkdownV2")


if __name__ == "__main__":
Expand Down

0 comments on commit f23d850

Please sign in to comment.