You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Telegram] Bot messages show as "Unknown" and cannot be read #30817
I dug into this and found the root cause. It isn't specific to OpenClaw — it affects any bot using Telegram's rich message format, and it's two separate problems stacked on each other.
1. The content never arrives. The extension depends on GramJS (the telegram package), which is archived on GitHub and deprecated on npm, and is pinned to MTProto layer 198. Telegram's servers are on 225+. Rich messages for bots landed in layer 228, and for a client announcing an older layer the server doesn't downgrade the content — it withholds it, substituting messageMediaUnsupported with the text stripped out. The extension maps that to an "unknown" media type, which is where the literal "Unknown" in the message row comes from. So there was nothing to render, and no amount of client-side handling would have fixed it.
2. Once the content does arrive, it gets filtered out. Rich messages carry their content in message.richMessage as a block tree rather than in the flat message.message string. Both message fetchers filter with msg.message || msg.media, so every rich message is dropped before it reaches the list — the messages disappear entirely rather than showing as "Unknown".
Both halves need fixing for bot messages to actually appear.
They're stacked in that order. The dependency swap in #30836 is the significant change and I've tried to justify it in the PR body — I also tested an npm-alias alternative that avoids touching the imports, and explain there why I didn't go with it.
Verified with ray develop against a live account: bot messages that previously showed as "Unknown" now render with their formatting intact.
@ikupenov — no urgency at all, but flagging since it touches the dependency. Happy to split, reshape, or drop any of it.
Activity
raycastbot commentedon Sep 6, 2026
Thank you for opening this issue!
🔔 @ikupenov you might want to have a look.
💡 Author and Contributors commands
The author and contributors of
ikupenov/telegramcan trigger bot actions by commenting:@raycastbot close this issueCloses the issue.@raycastbot close as not plannedCloses the issue as not planned.@raycastbot close as duplicateCloses the issue as duplicate.@raycastbot rename this issue to "Awesome new title"Renames the issue.@raycastbot reopen this issueReopens the issue.@raycastbot assign meAssigns yourself to the issue.@raycastbot good first issueAdds the "Good first issue" label to the issue.@raycastbot keep this issue openMake sure the issue won't go stale and will be kept open by the bot.[-][Telegram][/-][+][Telegram] Bot messages show as "Unknown" and cannot be read[/+]fatherkam commentedon Sep 6, 2026
I dug into this and found the root cause. It isn't specific to OpenClaw — it affects any bot using Telegram's rich message format, and it's two separate problems stacked on each other.
1. The content never arrives. The extension depends on GramJS (the
telegrampackage), which is archived on GitHub and deprecated on npm, and is pinned to MTProto layer 198. Telegram's servers are on 225+. Rich messages for bots landed in layer 228, and for a client announcing an older layer the server doesn't downgrade the content — it withholds it, substitutingmessageMediaUnsupportedwith the text stripped out. The extension maps that to an"unknown"media type, which is where the literal "Unknown" in the message row comes from. So there was nothing to render, and no amount of client-side handling would have fixed it.2. Once the content does arrive, it gets filtered out. Rich messages carry their content in
message.richMessageas a block tree rather than in the flatmessage.messagestring. Both message fetchers filter withmsg.message || msg.media, so every rich message is dropped before it reaches the list — the messages disappear entirely rather than showing as "Unknown".Both halves need fixing for bot messages to actually appear.
I've opened PRs for this:
teleproto(layer 229, the maintained continuation that GramJS's own npm deprecation notice points to) and readsrichMessageThey're stacked in that order. The dependency swap in #30836 is the significant change and I've tried to justify it in the PR body — I also tested an npm-alias alternative that avoids touching the imports, and explain there why I didn't go with it.
Verified with
ray developagainst a live account: bot messages that previously showed as "Unknown" now render with their formatting intact.@ikupenov — no urgency at all, but flagging since it touches the dependency. Happy to split, reshape, or drop any of it.