diff --git a/src/commands.js b/src/commands.js index 8b4e3222..ca9ee4bf 100644 --- a/src/commands.js +++ b/src/commands.js @@ -293,7 +293,11 @@ commands.api = async (sender, args, reply, app) => { try { reply(`Calling ${apiMethod} with the following arguments:\n${JSON.stringify(apiArgs, "", " ")}`) const response = await sender.telegramPuppet.client(apiMethod, apiArgs) - reply(`API call successful. Response:\n${JSON.stringify(response, "", " ")}`) + reply(`API call successful. Response: + +
+ ${JSON.stringify(response, "", " ")}
+`, { allowHTML: true })
} catch (err) {
reply(`API call errored. Response:\n${JSON.stringify(err, "", " ")}`)
}