openclaw/src/telegram/bot
Christian Klotz ddedb56c01 fix(telegram): pass parentPeer for forum topic binding inheritance (#9789)
Fixes #9545 and #9351.

When a message comes from a Telegram forum topic, the peer ID includes
the topic suffix (e.g., `-1001234567890:topic:99`). Users configure
bindings with the base group ID, which previously did not match.

This adds `parentPeer` to `resolveAgentRoute()` calls for forum groups,
enabling binding inheritance from the parent group to all topics.

- Extract `buildTelegramParentPeer()` helper in bot/helpers.ts
- Pass parentPeer in bot-message-context.ts, bot-handlers.ts,
  bot-native-commands.ts, and bot.ts (reaction handler)
- Add tests for forum topic routing and topic precedence
2026-02-05 18:25:03 +00:00
..
delivery.test.ts fix: unify telegram thread handling 2026-02-02 09:26:59 +05:30
delivery.ts fix: require thread specs for telegram sends 2026-02-02 09:26:59 +05:30
helpers.test.ts fix: trim legacy signature fallback, type fromChatType as union 2026-02-04 16:43:20 +05:30
helpers.ts fix(telegram): pass parentPeer for forum topic binding inheritance (#9789) 2026-02-05 18:25:03 +00:00
types.ts Telegram: remove @ts-nocheck from bot.ts, fix duplicate error handler, harden sticker caching (#9077) 2026-02-04 22:35:51 +00:00