Skip to content

fix(telegram): make common emoji reactions work reliably - #126739

Merged
steipete merged 2 commits into
mainfrom
codex/autoqa-telegram-reaction-canonical-20260820
Aug 20, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/autoqa-telegram-reaction-canonical-20260820

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where Telegram users configuring ordinary emoji reactions such as ❤️, ⚡️, ✍️, 🕊️, or ☃️ would see acknowledgments and status reactions silently disappear or explicit message reactions fail.

Why This Change Was Made

Telegram Bot API reaction identifiers omit Unicode text/emoji presentation selectors, while keyboards and user configuration commonly include them. Normalize both inputs and chat-allowed reactions to the existing Telegram-owned supported-reaction vocabulary at their canonical owner, and reuse that representation across acknowledgments, status updates, reaction allowlists, and explicit sends.

Unsupported emoji retain Telegram-side validation, custom reactions are not admitted, zero-width joiner sequences stay intact, and existing reaction-removal behavior remains unchanged.

User Impact

Common emoji chosen from keyboards now work consistently for Telegram acknowledgment reactions, live status reactions, allowed-reaction matching, and explicitly requested message reactions.

Evidence

  • Frozen branch head: 62d6bf57078574467c7f762c988f91ff243ca41a.
  • Regression-first proof: 18 authentic failures before the fix; 67 passing focused Telegram owner and transport-boundary tests afterward.
  • Exact proof: OPENCLAW_VITEST_MAX_WORKERS=1 OPENCLAW_VITEST_FS_MODULE_CACHE=0 node scripts/run-vitest.mjs extensions/telegram/src/status.test.ts extensions/telegram/src/send-mutation-targets.test.ts extensions/telegram/src/bot-message-context.reactions.test.ts --configLoader runner.
  • Direct dependency contract: installed @grammyjs/types ReactionTypeEmoji enumerates Telegram's selector-free wire representations, including ❤, ⚡, ✍, 🕊, ☃, ❤‍🔥, and 🤷‍♂.
  • Compatibility coverage preserves unsupported reactions, skin-tone sequences, joiner sequences, custom-reaction rejection, and reaction removal.
  • Independent architectural review and separate authenticated Codex reviews reported no actionable findings.
  • Production LOC: +18/-19 (net -1); tests: +79/-9.
  • Live Telegram proof was not run because this isolated campaign does not own a dedicated authorized Telegram account or channel; the real Telegram plugin/grammY API boundary is covered by regression-first transport tests.

@clawsweeper

clawsweeper Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram size: S maintainer Maintainer-authored PR labels Aug 20, 2026
@steipete
steipete marked this pull request as ready for review August 20, 2026 16:28
@steipete
steipete force-pushed the codex/autoqa-telegram-reaction-canonical-20260820 branch from 62d6bf5 to 2a4bad0 Compare August 20, 2026 16:40
@steipete
steipete merged commit ccabd53 into main Aug 20, 2026
180 checks passed
@steipete
steipete deleted the codex/autoqa-telegram-reaction-canonical-20260820 branch August 20, 2026 16:57
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 21, 2026
…6739)

* fix(telegram): normalize supported reaction emoji variants

* chore(telegram): prune obsolete assertion safety baseline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant