hermes - 💡(How to fix) Fix [Bug]: Telegram rich-text link URLs are not exposed to the agent [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Additional Logs / Traceback (optional)

Root Cause

Root Cause Analysis (optional)

Fix Action

Fixed

Code Example

[财联社](https://mp.weixin.qq.com/...)

---

message.text: "财联社"
message.entities[0].type: "text_link"
message.entities[0].url: "https://mp.weixin.qq.com/..."

---

财联社

---

[财联社](https://mp.weixin.qq.com/...)

---

Links:
- 财联社: https://mp.weixin.qq.com/...

---

Report       https://paste.rs/9kxer
agent.log    https://paste.rs/5n3Pn
gateway.log  https://paste.rs/IX68X

---
RAW_BUFFERClick to expand / collapse

Bug Description

When a Telegram user sends a rich-text hyperlink, Hermes passes only the visible text to the agent, not the underlying URL from Telegram’s text_link entity.

For example, a Telegram message may visually appear as linked text such as:

[财联社](https://mp.weixin.qq.com/...)

Telegram represents this as:

message.text: "财联社"
message.entities[0].type: "text_link"
message.entities[0].url: "https://mp.weixin.qq.com/..."

But the agent only receives the visible text:

财联社

As a result, the agent cannot detect or open the original source URL unless the user sends the URL as plain text.

Steps to Reproduce

  1. Use Hermes through the Telegram gateway.
  2. Send a Telegram rich-text hyperlink, for example a message where the visible text is 财联社 and the hidden URL is a WeChat article URL.
  3. Ask the agent to summarize or open the original article.
  4. Observe that the agent only sees the visible text and does not open the hidden URL.

Expected Behavior

Hermes should expose Telegram text_link URLs to the agent.

For example, it could convert the incoming message into Markdown-style text:

[财联社](https://mp.weixin.qq.com/...)

Or append extracted links after the message body:

Links:
- 财联社: https://mp.weixin.qq.com/...

Actual Behavior

Only the visible text is passed to the agent. Hidden URLs from Telegram text_link entities are not visible to the model.

Affected Component

Gateway (Telegram/Discord/Slack/WhatsApp)

Messaging Platform (if gateway-related)

Telegram

Debug Report

Report       https://paste.rs/9kxer
agent.log    https://paste.rs/5n3Pn
gateway.log  https://paste.rs/IX68X

Operating System

NixOS 26.05

Python Version

3.12.13

Hermes Version

0.14.0 (2026.5.16)

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [Bug]: Telegram rich-text link URLs are not exposed to the agent [1 pull requests]