feat: add telegram headers and disable previews

This commit is contained in:
2025-11-09 21:52:41 +01:00
parent ace0817b0f
commit b55adabb58

View File

@@ -55,8 +55,9 @@ async function sendTelegramNotification(adminTelegram, userTelegram, payload) {
endpoint, endpoint,
{ {
chat_id: userTelegram.chatId, chat_id: userTelegram.chatId,
text: payload.message, text: payload.title ? `*${payload.title}*\n${payload.message}` : payload.message,
disable_web_page_preview: false parse_mode: payload.title ? 'Markdown' : undefined,
disable_web_page_preview: true
}, },
{ timeout: 15000 } { timeout: 15000 }
); );