From 8ea371dd09881bb13123156e09326a14ecea1e80 Mon Sep 17 00:00:00 2001 From: martbost Date: Wed, 2 Sep 2026 05:12:40 -0500 Subject: [PATCH] Telegram team posts: disable link previews on payout/team-build notifications Co-Authored-By: Claude Fable 5 --- server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;