openclaw/extensions/telegram/src
Robin Waslander 3847ace25b
fix(telegram): preserve forum topic routing for /new and /reset (#56654)
Build a topic-qualified routing target (telegram:<chatId>:topic:<threadId>)
for native commands in forum groups so /new and /reset stay scoped to
the active topic instead of falling back to General.

General topic (threadId=1) correctly falls through to the base chat
target since Telegram rejects message_thread_id=1 on sends.

Add regression tests for topic routing and General topic edge case.

Fixes #35963
2026-03-29 00:21:41 +01:00
..
bot fix(telegram): preserve forum topic routing for /new and /reset (#56654) 2026-03-29 00:21:41 +01:00
account-inspect.test.ts
account-inspect.ts refactor: trim secret and ssrf helper runtime seams 2026-03-28 02:25:28 +00:00
accounts.test.ts
accounts.ts refactor: route telegram env helpers through runtime-env 2026-03-28 02:34:11 +00:00
action-runtime.test.ts
action-runtime.ts fix: unblock telegram typing and topic runtime builds 2026-03-28 04:58:34 +00:00
action-threading.ts refactor: share slack and telegram action helpers 2026-03-26 19:07:35 +00:00
allow-from.ts
allowed-updates.test.ts test: harden channel suite isolation 2026-03-23 12:57:43 +00:00
allowed-updates.ts fix(telegram): harden grammy seams across tests 2026-03-22 21:46:26 -07:00
api-fetch.test.ts test: collapse telegram transport and status suites 2026-03-25 11:23:18 +00:00
api-fetch.ts feat(telegram): support custom apiRoot for alternative API endpoints (#48842) 2026-03-21 10:10:38 +05:30
api-logging.ts refactor: move telegram error formatting onto ssrf runtime 2026-03-28 02:38:02 +00:00
approval-buttons.ts refactor: add approval runtime sdk seam 2026-03-28 06:33:07 +00:00
audit-membership-runtime.ts refactor(telegram): tighten api result typings 2026-03-28 09:52:21 +05:30
audit.test.ts test: harden threaded shared-worker suites 2026-03-24 08:37:00 +00:00
audit.ts feat(telegram): support custom apiRoot for alternative API endpoints (#48842) 2026-03-21 10:10:38 +05:30
bot-access.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
bot-deps.ts refactor: route telegram bot deps through channel runtime 2026-03-28 03:42:37 +00:00
bot-handlers.buffers.ts refactor(telegram): simplify runtime handler typing 2026-03-28 09:41:18 +05:30
bot-handlers.media.ts
bot-handlers.runtime.ts fix: display model name instead of ID in Telegram model selector (#56165) (#56175) 2026-03-28 09:23:09 -04:00
bot-handlers.ts
bot-message-context.acp-bindings.test.ts test: mock telegram conversation route seam 2026-03-28 13:17:57 +05:30
bot-message-context.audio-transcript.test.ts perf: speed up channel test runs 2026-03-26 15:40:01 +00:00
bot-message-context.body.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
bot-message-context.dm-threads.test.ts perf: speed up channel test runs 2026-03-26 15:40:01 +00:00
bot-message-context.dm-topic-threadid.test.ts test: dedupe extension channel fixtures 2026-03-26 19:47:27 +00:00
bot-message-context.implicit-mention.test.ts
bot-message-context.named-account-dm.test.ts refactor: dedupe test helpers and harnesses 2026-03-24 21:41:46 +00:00
bot-message-context.route-test-support.ts refactor: dedupe test helpers and harnesses 2026-03-24 21:41:46 +00:00
bot-message-context.sender-prefix.test.ts test: collapse telegram context and transport suites 2026-03-25 11:17:58 +00:00
bot-message-context.session.ts fix: preserve Telegram forum topic last-route delivery (#53052) (thanks @VACInc) 2026-03-25 11:31:01 +05:30
bot-message-context.test-harness.ts test: harden channel suite isolation 2026-03-23 12:57:43 +00:00
bot-message-context.thread-binding.test.ts test: align telegram thread binding seam coverage 2026-03-28 14:17:09 +05:30
bot-message-context.topic-agentid.test.ts
bot-message-context.ts fix: unblock telegram typing and topic runtime builds 2026-03-28 04:58:34 +00:00
bot-message-context.types.ts fix(agents): avoid model catalog startup tax on telegram replies 2026-03-21 15:03:55 -07:00
bot-message-dispatch.sticker-media.test.ts
bot-message-dispatch.test.ts fix: display model name instead of ID in Telegram model selector (#56165) (#56175) 2026-03-28 09:23:09 -04:00
bot-message-dispatch.ts fix(telegram): tighten reaction typings 2026-03-28 10:28:24 +05:30
bot-message.test.ts test: speed up telegram extension suites 2026-03-24 15:16:18 +00:00
bot-message.ts Telegram: recover General topic bindings (#53699) 2026-03-24 10:51:26 -04:00
bot-native-command-menu.test.ts fix(regression): handle telegram command error envelopes 2026-03-27 23:36:37 -05:00
bot-native-command-menu.ts fix: unblock telegram typing and topic runtime builds 2026-03-28 04:58:34 +00:00
bot-native-commands.fixture-test-support.ts Plugins: internalize telegram SDK imports 2026-03-17 23:09:26 -07:00
bot-native-commands.group-auth.test.ts Telegram: stabilize pairing/session/forum routing and reply formatting tests (#50155) 2026-03-19 00:01:14 -05:00
bot-native-commands.menu-test-support.ts fix: display model name instead of ID in Telegram model selector (#56165) (#56175) 2026-03-28 09:23:09 -04:00
bot-native-commands.plugin-auth.test.ts test: harden channel suite isolation 2026-03-23 11:09:12 +00:00
bot-native-commands.registry.test.ts test: speed up telegram extension suites 2026-03-24 15:57:16 +00:00
bot-native-commands.session-meta.test.ts fix(telegram): preserve forum topic routing for /new and /reset (#56654) 2026-03-29 00:21:41 +01:00
bot-native-commands.skills-allowlist.test.ts test(telegram): fix native command runtime mocks 2026-03-18 12:46:09 +05:30
bot-native-commands.test-helpers.ts fix: display model name instead of ID in Telegram model selector (#56165) (#56175) 2026-03-28 09:23:09 -04:00
bot-native-commands.test.ts refactor: dedupe test helpers and harnesses 2026-03-24 21:41:46 +00:00
bot-native-commands.ts fix(telegram): preserve forum topic routing for /new and /reset (#56654) 2026-03-29 00:21:41 +01:00
bot-updates.ts refactor: move channel dedupe helpers onto core sdk 2026-03-28 02:58:45 +00:00
bot.create-telegram-bot.channel-post-media.test.ts perf: speed up channel test runs 2026-03-26 15:40:01 +00:00
bot.create-telegram-bot.test-harness.ts fix: display model name instead of ID in Telegram model selector (#56165) (#56175) 2026-03-28 09:23:09 -04:00
bot.create-telegram-bot.test.ts perf: speed up channel test runs 2026-03-26 15:40:01 +00:00
bot.fetch-abort.test.ts perf(core): trim provider and inbound startup imports (#51927) 2026-03-21 16:20:42 -07:00
bot.helpers.test.ts test: collapse telegram helper suites 2026-03-25 11:17:58 +00:00
bot.media.downloads-media-file-path-no-file-download.e2e.test.ts test(telegram): stabilize inbound media harness 2026-03-18 13:35:56 +05:30
bot.media.e2e-harness.ts fix: display model name instead of ID in Telegram model selector (#56165) (#56175) 2026-03-28 09:23:09 -04:00
bot.media.stickers-and-fragments.e2e.test.ts test: reduce remaining clone seams 2026-03-26 20:01:01 +00:00
bot.media.test-utils.ts refactor: move test harnesses off infra runtime 2026-03-28 06:52:06 +00:00
bot.runtime.ts
bot.test.ts Telegram: enforce DM auth for callbacks (#55112) 2026-03-26 11:42:27 +00:00
bot.ts refactor: add diagnostic and error runtime sdk seams 2026-03-28 06:26:38 +00:00
button-types.ts refactor(plugin-sdk): split interactive runtime helpers 2026-03-18 11:30:34 +05:30
caption.ts
channel-actions.test.ts test: split extension-owned core coverage 2026-03-27 16:08:57 +00:00
channel-actions.ts fix: document Telegram asDocument alias (#52461) (thanks @bakhtiersizhaev) 2026-03-23 17:32:46 +05:30
channel.setup.ts Plugins: internalize telegram SDK imports 2026-03-17 23:09:26 -07:00
channel.test.ts fix(regression): preserve telegram pairing account context 2026-03-27 23:15:23 -05:00
channel.ts refactor: add approval runtime sdk seam 2026-03-28 06:33:07 +00:00
config-schema.ts refactor: move channel config metadata into plugin-owned manifests 2026-03-27 01:59:30 +00:00
config-ui-hints.ts refactor: move channel config metadata into plugin-owned manifests 2026-03-27 01:59:30 +00:00
conversation-route.base-session-key.test.ts
conversation-route.ts
directory-config.ts refactor: share directory config listers 2026-03-26 23:20:26 +00:00
dm-access.test.ts fix: repair ci test and loader regressions 2026-03-27 18:41:47 +00:00
dm-access.ts fix: scope Telegram pairing code blocks (#52784) (thanks @sumukhj1219) 2026-03-25 11:03:33 +05:30
draft-chunking.ts
draft-stream.test-helpers.ts
draft-stream.test.ts fix: finish telegram reply fallback landing (#52524) (thanks @moltbot886) 2026-03-22 18:54:01 -07:00
draft-stream.ts fix(telegram): validate replyToMessageId before sending to Telegram API (#56587) 2026-03-28 20:47:10 +01:00
exec-approval-forwarding.ts refactor: add approval runtime sdk seam 2026-03-28 06:33:07 +00:00
exec-approvals-handler.test.ts feat(hooks): add async requireApproval to before_tool_call (#55339) 2026-03-27 09:06:40 -07:00
exec-approvals-handler.ts refactor: add approval runtime sdk seam 2026-03-28 06:33:07 +00:00
exec-approvals.test.ts
exec-approvals.ts refactor: add approval runtime sdk seam 2026-03-28 06:33:07 +00:00
fetch.network-policy.test.ts test: move extension-owned coverage into plugins 2026-03-27 15:11:33 +00:00
fetch.test.ts fix: repair ci test and loader regressions 2026-03-27 18:41:47 +00:00
fetch.ts refactor: add fetch runtime sdk seam 2026-03-28 05:44:33 +00:00
format.test.ts
format.ts fix(telegram): split long messages at word boundaries instead of mid-word (#56595) 2026-03-28 21:24:59 +01:00
format.wrap-md.test.ts fix(telegram): split long messages at word boundaries instead of mid-word (#56595) 2026-03-28 21:24:59 +01:00
forum-service-message.ts fix: unblock telegram typing and topic runtime builds 2026-03-28 04:58:34 +00:00
group-access.base-access.test.ts test: collapse telegram button and access suites 2026-03-25 11:23:18 +00:00
group-access.ts
group-config-helpers.ts
group-migration.test.ts
group-migration.ts
group-policy.contract.test.ts refactor: move extension-owned tests to extensions 2026-03-27 21:37:09 +00:00
group-policy.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
inbound.contract.test.ts refactor: move extension-owned tests to extensions 2026-03-27 21:37:09 +00:00
inline-buttons.test.ts feat(hooks): add async requireApproval to before_tool_call (#55339) 2026-03-27 09:06:40 -07:00
inline-buttons.ts refactor(telegram): tighten helper field readers 2026-03-28 09:57:46 +05:30
lane-delivery-state.ts
lane-delivery-text-deliverer.ts fix: emit message:sent hook on Telegram streaming preview finalization (#50917) 2026-03-20 22:42:04 +05:30
lane-delivery.test.ts fix: emit message:sent hook on Telegram streaming preview finalization (#50917) 2026-03-20 22:42:04 +05:30
lane-delivery.ts
media-understanding.runtime.ts
message-tool-schema.ts Plugins: move message tool schemas into channel plugins 2026-03-19 01:08:23 -04:00
model-buttons.test.ts fix: display model name instead of ID in Telegram model selector (#56165) (#56175) 2026-03-28 09:23:09 -04:00
model-buttons.ts fix: display model name instead of ID in Telegram model selector (#56165) (#56175) 2026-03-28 09:23:09 -04:00
monitor.test.ts refactor: narrow telegram test mocks off infra runtime 2026-03-28 06:56:41 +00:00
monitor.ts refactor: move telegram error formatting onto ssrf runtime 2026-03-28 02:38:02 +00:00
network-config.test.ts refactor: route telegram env helpers through runtime-env 2026-03-28 02:34:11 +00:00
network-config.ts refactor: route telegram env helpers through runtime-env 2026-03-28 02:34:11 +00:00
network-errors.test.ts
network-errors.ts refactor: add diagnostic and error runtime sdk seams 2026-03-28 06:26:38 +00:00
normalize.ts
outbound-adapter.test.ts tests: add boundary coverage for media delivery (#53361) 2026-03-23 23:37:34 -05:00
outbound-adapter.ts Fix/telegram writeback admin scope gate (#54561) 2026-03-25 12:12:09 -06:00
outbound-params.ts fix(telegram): validate replyToMessageId before sending to Telegram API (#56587) 2026-03-28 20:47:10 +01:00
plugins-core.contract.test.ts refactor: move extension-owned tests to extensions 2026-03-27 21:37:09 +00:00
polling-session.test.ts refactor: move telegram timing helpers onto runtime-env 2026-03-28 02:43:29 +00:00
polling-session.ts refactor: move telegram timing helpers onto runtime-env 2026-03-28 02:43:29 +00:00
polling-transport-state.ts refactor: split telegram polling and sdk surfaces 2026-03-26 21:13:16 +00:00
probe.test.ts test: speed up telegram extension suites 2026-03-24 15:16:18 +00:00
probe.ts feat(telegram): support custom apiRoot for alternative API endpoints (#48842) 2026-03-21 10:10:38 +05:30
proxy.ts refactor: add fetch runtime sdk seam 2026-03-28 05:44:33 +00:00
reaction-level.test.ts
reaction-level.ts
reasoning-lane-coordinator.test.ts
reasoning-lane-coordinator.ts
registry-backed.contract.test.ts refactor: move extension-owned tests to extensions 2026-03-27 21:37:09 +00:00
runtime.ts fix(regression): preserve Telegram status fallback without runtime 2026-03-27 15:33:10 -05:00
send.proxy.test.ts test: speed up telegram extension suites 2026-03-24 15:57:16 +00:00
send.test-harness.ts fix: preflight invalid telegram photos (#52545) (thanks @hnshah) 2026-03-25 12:00:20 +05:30
send.test.ts fix(telegram): validate replyToMessageId before sending to Telegram API (#56587) 2026-03-28 20:47:10 +01:00
send.ts fix(telegram): validate replyToMessageId before sending to Telegram API (#56587) 2026-03-28 20:47:10 +01:00
sendchataction-401-backoff.test.ts refactor: narrow telegram test mocks off infra runtime 2026-03-28 06:56:41 +00:00
sendchataction-401-backoff.ts refactor(telegram): tighten chat action typings 2026-03-28 09:41:18 +05:30
sent-message-cache.ts fix: restore CI runtime seams 2026-03-27 14:07:01 +00:00
sequential-key.test.ts
sequential-key.ts
setup-core.ts feat(telegram): support custom apiRoot for alternative API endpoints (#48842) 2026-03-21 10:10:38 +05:30
setup-surface.test.ts test: collapse telegram and whatsapp target suites 2026-03-25 05:21:16 +00:00
setup-surface.ts refactor: share top-level setup dm policies 2026-03-26 23:20:26 +00:00
shared.ts refactor: move channel config metadata into plugin-owned manifests 2026-03-27 01:59:30 +00:00
status-issues.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
status-reaction-variants.ts fix(telegram): tighten reaction typings 2026-03-28 10:28:24 +05:30
status.test.ts fix(telegram): tighten reaction typings 2026-03-28 10:28:24 +05:30
sticker-cache.test.ts
sticker-cache.ts
target-writeback.test-shared.ts refactor: share matrix and telegram dedupe helpers 2026-03-26 15:08:45 +00:00
target-writeback.test.ts refactor: share matrix and telegram dedupe helpers 2026-03-26 15:08:45 +00:00
target-writeback.ts Fix/telegram writeback admin scope gate (#54561) 2026-03-25 12:12:09 -06:00
targets.test.ts refactor: share matrix and telegram dedupe helpers 2026-03-26 15:08:45 +00:00
targets.ts
thread-bindings.test.ts fix(telegram): serialize thread binding persists 2026-03-20 00:30:11 -07:00
thread-bindings.ts refactor: trim state persistence runtime seams 2026-03-28 06:08:18 +00:00
token.test.ts test: dedupe extension channel fixtures 2026-03-26 19:47:27 +00:00
token.ts refactor: trim secret and ssrf helper runtime seams 2026-03-28 02:25:28 +00:00
update-offset-store.runtime.ts refactor: continue plugin seam cleanup 2026-03-27 13:46:16 +00:00
update-offset-store.test.ts
update-offset-store.ts refactor: trim state persistence runtime seams 2026-03-28 06:08:18 +00:00
voice.test.ts test: collapse telegram helper suites 2026-03-25 11:17:58 +00:00
voice.ts
webhook.test.ts telegram: throttle repeated webhook auth guesses (#55142) 2026-03-26 16:19:31 +00:00
webhook.ts refactor: add diagnostic and error runtime sdk seams 2026-03-28 06:26:38 +00:00