diff --git a/server.js b/server.js index b3a10d2..2f3cf67 100644 --- a/server.js +++ b/server.js @@ -157,7 +157,9 @@ function submitRateLimited(ip) { function sendTelegram(text, topicId, replyMarkup) { const c = getConfig(); if (!c.telegramBotToken || !c.telegramChatId) return; - const payload = { chat_id: c.telegramChatId, text }; + // No link previews: payout/team-build posts carry Polygonscan links, and the + // preview card tripled the height of every message in the group. + const payload = { chat_id: c.telegramChatId, text, disable_web_page_preview: true }; const thread = topicId != null ? topicId : c.telegramTopicId; if (thread && /^[0-9]+$/.test(String(thread))) payload.message_thread_id = Number(thread); if (replyMarkup) payload.reply_markup = replyMarkup;