feat: add telegram headers and disable previews
This commit is contained in:
@@ -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 }
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user