Skip to content

Cherry-pick: Telegram adapter fixes #676

@alexey-pelykh

Description

@alexey-pelykh

Context

Upstream OpenClaw commits fixing Telegram adapter: media handling, inline queries,
group session routing, message editing, reply threading, typing indicators.

20 commits from upstream scan window 501-1000.

Upstream Commits

Hash Subject
aae90cb03 fix(telegram): include replied media files in reply context (openclaw#28488)
69c39368e fix: enforce telegram shared outbound chunking
2bef2910f fix: preserve whitespace in telegram html retry chunking
e6049345d fix(telegram): preserve HTTP proxy env in global dispatcher workaround (openclaw#29940)
a779c2ca6 fix(telegram): skip nullish final text sends (land openclaw#30969 by @haosenwang1018)
5b64b96c6 fix(discord): add ackReactionScope channel override + off/none values (openclaw#28268)
60f8e832e fix(telegram): handle sendVoice caption-too-long by resending without caption
8247c25a3 fix(telegram): check chat allowlist before sender allowlist in group policy
3b2ed8fe6 fix(telegram): prevent channel-level groups from leaking to all accounts in multi-account setups
666a4763e Telegram: preserve proxy-aware global dispatcher
042d06a19 Telegram: stop bot on polling teardown
b0c7f1ebe fix: harden sessions_spawn delivery params and telegram account routing (openclaw#31000, openclaw#31110)
f64d25bd3 fix(telegram): scope DM topic thread keys by chat id (openclaw#31064)
2a381e6d7 fix(telegram): replyToMode 'first' now only applies reply-to to first chunk
ef9085927 test: cover voice fallback first-chunk reply behavior (openclaw#31077)
e6e3a7b49 fix(telegram): retry DM thread sends without message_thread_id [AI-assisted]
48d369749 fix(telegram): skip null/undefined final text payloads
9c03f8be0 telegram: retry media fetch with IPv4 fallback on connect errors (openclaw#30554)
e4e5d9c98 fix(model): land openclaw#30932 auth-profile @ parsing for /model (@haosenwang1018)
493ebb915 refactor: simplify telegram delivery and outbound session resolver flow

Adaptation Notes

  • Telegram extension in extensions/telegram/ — KEEP layer
  • Some files also in src/channels/telegram/ (4 files)

Metadata

Metadata

Assignees

No one assigned

    Labels

    cherry-pickCherry-pick from upstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions