Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions agent/telegram_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5914,6 +5914,25 @@ def _handle_agency_callback(self, cb: dict, data: str) -> None:

msg_id = msg.get("message_id")

# Universal πŸ”₯ reaction on any agency-button tap so the user
# can tell at a glance which cards have been answered, even
# after the keyboard is stripped. Fires for every kind
# (action / dismiss / refine / custom). setMessageReaction
# replaces prior reactions, so tapping again on a custom
# multi-button card keeps the fire in place rather than
# accumulating.
if msg_id:
try:
self.call(
"setMessageReaction",
chat_id=chat_id,
message_id=msg_id,
reaction=[{"type": "emoji", "emoji": "πŸ”₯"}],
is_big=False,
)
except Exception:
LOG.exception("agency setMessageReaction failed")

# Lookup the suggestion row (for title + prompt) and record the
# decision. Best-effort: a missing row (button posted out-of-band,
# e.g. the legacy tg-buttons helper) means action/refine fall back
Expand Down
Loading