def send_help(bot, chat_id, command, error=""):
if command not in help_messages:
raise Exception('Unknown command: ' + command)
message = ""
if error != "":
message = "Error: " + error + "\n"
message += help_messages[command]
try:
__actual_send_message(chat_id=chat_id, bot=bot, text=message, parse_mode=ParseMode.MARKDOWN)
except TelegramError as e:
raise e
评论列表
文章目录