Библиотека pyTelegramBotAPI, не работает parse_mode
Такой вопрос: при использования метода parse_mode = 'html' выдает ошибку? в чем может быть проблема?
@bot.message_handler(commands=['help'])
def main_start(message):
bot.send_message(message.chat.id, '<h1>Информация: ... ... ...</h1>', parse_mode='html')
Ошибка:
raise ApiTelegramException(method_name, result, result_json)
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: can't parse entities: Unsupported start tag "h1" at byte offset 0