add ``` to avoid error

This commit is contained in:
2017-11-30 01:40:57 +08:00
parent edb82859af
commit 884a5f41d4

View File

@ -218,7 +218,8 @@ class Kuser:
q_str += "<b>" + self._question + "</b> (DL: " + q[0] + ")\n [[" + q[2] + "]]" q_str += "<b>" + self._question + "</b> (DL: " + q[0] + ")\n [[" + q[2] + "]]"
q_str += "⚠️" if q[2] == '未繳' else "" q_str += "⚠️" if q[2] == '未繳' else ""
bot.sendMessage(self._userid, q_str + "\n\n現在請把你的程式碼讓我看看(請別超過 20 MB\n" bot.sendMessage(self._userid, q_str + "\n\n現在請把你的程式碼讓我看看(請別超過 20 MB\n"
"可以使用「文字訊息」或是「傳送檔案」的方式", parse_mode='HTML', "可以使用「文字訊息」或是「傳送檔案」的方式\n"
"(注意:可在程式碼前後加上單獨成行的 ``` 避免可能的錯誤。)", parse_mode='HTML',
reply_markup=ReplyKeyboardMarkup(keyboard=[ reply_markup=ReplyKeyboardMarkup(keyboard=[
["刪除作業⚔️"] if self._api.list_questions()[self._question][2] == '已繳' else [], ["刪除作業⚔️"] if self._api.list_questions()[self._question][2] == '已繳' else [],
["首頁🏠", "回題目📜"] ["首頁🏠", "回題目📜"]