From 4bd7ca305a92a92ba3273860fcbaa654ec8e61d9 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 7 Jan 2026 11:19:09 +0000 Subject: [PATCH] fix(telegram): honor session activation overrides --- CHANGELOG.md | 1 + src/telegram/bot.ts | 11 +---------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8635852b9..954864cf4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ - Telegram: include sender identity in group envelope headers. (#336) - Telegram: support forum topics with topic-isolated sessions and message_thread_id routing. Thanks @HazAT, @nachoiacovino, @RandyVentures for PR #321/#333/#334. - Telegram: add draft streaming via `sendMessageDraft` with `telegram.streamMode`, plus `/reasoning stream` for draft-only reasoning. +- Telegram: honor `/activation` session mode for group mention gating and clarify group activation docs. Thanks @julianengel for PR #377. - iMessage: ignore disconnect errors during shutdown (avoid unhandled promise rejections). Thanks @antons for PR #359. - Messages: stop defaulting ack reactions to 👀 when identity emoji is missing. - Auto-reply: require slash for control commands to avoid false triggers in normal text. diff --git a/src/telegram/bot.ts b/src/telegram/bot.ts index 00d4f85c9..506c0c94f 100644 --- a/src/telegram/bot.ts +++ b/src/telegram/bot.ts @@ -860,7 +860,7 @@ export function createTelegramBot(opts: TelegramBotOptions) { kind: isGroup ? "group" : "dm", id: isGroup ? buildTelegramGroupPeerId(chatId, messageThreadId) - : buildTelegramDmPeerId(chatId, messageThreadId), + : String(chatId), }, }); const skillFilter = firstDefined( @@ -1251,15 +1251,6 @@ function buildTelegramGroupPeerId( : String(chatId); } -function buildTelegramDmPeerId( - chatId: number | string, - messageThreadId?: number, -) { - return messageThreadId != null - ? `${chatId}:topic:${messageThreadId}` - : String(chatId); -} - function buildTelegramGroupFrom( chatId: number | string, messageThreadId?: number,