Your personal intelligence agent. Watches the world from multiple data sources and pings you when something changes.
Remove text truncation limits from Telegram posts
Greg Scher753c6766a0b2
diff --git a/apis/sources/telegram.mjs b/apis/sources/telegram.mjsindex eb65384..c4f6e17 100644--- a/apis/sources/telegram.mjs+++ b/apis/sources/telegram.mjs@@ -94,7 +94,7 @@ export async function getChat(chatId) {// Compact a Bot API message for briefing outputfunction compactBotMessage(msg) {return {- text: (msg.text || msg.caption || '').slice(0, 300),+ text: msg.text || msg.caption || '',date: msg.date ? new Date(msg.date * 1000).toISOString() : null,chat: msg.chat?.title || msg.chat?.username || 'unknown',views: msg.views || 0,@@ -171,8 +171,7 @@ function parseWebPreview(html, channelId) {.replace(/"/g, '"').replace(/'/g, "'").replace(/ /g, ' ')- .trim()- .slice(0, 300);+ .trim();}// Extract view countdiff --git a/lib/alerts/telegram.mjs b/lib/alerts/telegram.mjsindex 4c3ac3a..4288b02 100644--- a/lib/alerts/telegram.mjs+++ b/lib/alerts/telegram.mjs@@ -681,7 +681,7 @@ Respond with ONLY valid JSON:if (osintSignals.length > 0) {sections.push('📡 OSINT SIGNALS:\n' + osintSignals.map(s => {const post = s.item || s;- return ` [${post.channel || 'UNKNOWN'}] ${(post.text || s.reason || '').substring(0, 150)}`;+ return ` [${post.channel || 'UNKNOWN'}] ${post.text || s.reason || ''}`;}).join('\n'));}