Repository navigation
fix(telegram): make common emoji reactions work reliably - #126739
Merged
steipete merged 2 commits intoAug 20, 2026
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 20, 2026 16:28
steipete
force-pushed
the
codex/autoqa-telegram-reaction-canonical-20260820
branch
from
August 20, 2026 16:40
62d6bf5 to
2a4bad0
Compare
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
62d6bf57078574467c7f762c988f91ff243ca41a.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.@grammyjs/typesReactionTypeEmojienumerates Telegram's selector-free wire representations, including ❤, ⚡, ✍, 🕊, ☃, ❤🔥, and 🤷♂.