Skip to content

Commit 4bd7ca3

Browse files
committed
fix(telegram): honor session activation overrides
1 parent 3cbced0 commit 4bd7ca3

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
- Telegram: include sender identity in group envelope headers. (#336)
4949
- Telegram: support forum topics with topic-isolated sessions and message_thread_id routing. Thanks @HazAT, @nachoiacovino, @RandyVentures for PR #321/#333/#334.
5050
- Telegram: add draft streaming via `sendMessageDraft` with `telegram.streamMode`, plus `/reasoning stream` for draft-only reasoning.
51+
- Telegram: honor `/activation` session mode for group mention gating and clarify group activation docs. Thanks @julianengel for PR #377.
5152
- iMessage: ignore disconnect errors during shutdown (avoid unhandled promise rejections). Thanks @antons for PR #359.
5253
- Messages: stop defaulting ack reactions to 👀 when identity emoji is missing.
5354
- Auto-reply: require slash for control commands to avoid false triggers in normal text.

src/telegram/bot.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ export function createTelegramBot(opts: TelegramBotOptions) {
860860
kind: isGroup ? "group" : "dm",
861861
id: isGroup
862862
? buildTelegramGroupPeerId(chatId, messageThreadId)
863-
: buildTelegramDmPeerId(chatId, messageThreadId),
863+
: String(chatId),
864864
},
865865
});
866866
const skillFilter = firstDefined(
@@ -1251,15 +1251,6 @@ function buildTelegramGroupPeerId(
12511251
: String(chatId);
12521252
}
12531253

1254-
function buildTelegramDmPeerId(
1255-
chatId: number | string,
1256-
messageThreadId?: number,
1257-
) {
1258-
return messageThreadId != null
1259-
? `${chatId}:topic:${messageThreadId}`
1260-
: String(chatId);
1261-
}
1262-
12631254
function buildTelegramGroupFrom(
12641255
chatId: number | string,
12651256
messageThreadId?: number,

0 commit comments

Comments
 (0)