From 532e03e900a40845c6c2522fe6249220f1f93786 Mon Sep 17 00:00:00 2001 From: anatolykopyl Date: Sat, 11 Nov 2023 01:36:08 +0300 Subject: [PATCH] Add pretty print --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index bfcee45..fab135a 100644 --- a/index.ts +++ b/index.ts @@ -14,7 +14,7 @@ const server = Bun.serve({ const text = encodeURIComponent(` *Новое письмо с flexpatrol.ru* \`\`\` -${JSON.stringify(submittedData)} +${JSON.stringify(submittedData, null, 2)} \`\`\``) await fetch(`https://api.telegram.org/bot${BOT_TOKEN}/sendMessage?chat_id=${CHAT_ID}&text=${text}&parse_mode=markdown`)