Add pretty print
This commit is contained in:
2
index.ts
2
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`)
|
||||
|
||||
Reference in New Issue
Block a user