mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
fix(telegram): use thread fallback helper in slash-confirm result send
PR #23458 introduced _send_message_with_thread_fallback() and applied it to all control-style sends (send_update_prompt, send_approval_request, send_model_picker_prompt), but the slash-confirm result message in handle_callback_query still called self._bot.send_message directly. In supergroups with stale message_thread_id on the callback's parent message, this raises "Message thread not found" and silently swallows the result text. Replace with the helper so the same retry-without- thread-id logic applies.
This commit is contained in:
parent
327b8cee9e
commit
e474130c48
1 changed files with 1 additions and 1 deletions
|
|
@ -2772,7 +2772,7 @@ class TelegramAdapter(BasePlatformAdapter):
|
||||||
{"thread_id": str(thread_id)},
|
{"thread_id": str(thread_id)},
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
await self._bot.send_message(**send_kwargs)
|
await self._send_message_with_thread_fallback(**send_kwargs)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logger.error("[%s] slash-confirm callback failed: %s", self.name, exc, exc_info=True)
|
logger.error("[%s] slash-confirm callback failed: %s", self.name, exc, exc_info=True)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue