From f23d850b5d718fbf813655d1add699097dc2a239 Mon Sep 17 00:00:00 2001 From: sgrtye Date: Sat, 5 Oct 2024 20:54:30 +0100 Subject: [PATCH] omit the default parse mode for the bot --- telebot/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/telebot/main.py b/telebot/main.py index d473175..0236d6e 100644 --- a/telebot/main.py +++ b/telebot/main.py @@ -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"), @@ -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__":