feat(ton-bridge): add inline keyboard URL button support - #46
Merged
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: xlabtg#44
Replace plain text link with a proper Telegram inline keyboard URL button.
`buildMessageWithLink` now returns `{ text, opts }` where `opts.inlineKeyboard`
contains the TON Bridge Mini App URL button. All three tools (`ton_bridge_open`,
`ton_bridge_about`, `ton_bridge_custom_message`) pass the opts to
`sdk.telegram.sendMessage`. Tests updated to verify inline keyboard structure,
button text (with and without emoji), and URL content. README examples updated.
Fixes xlabtg#44
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
konard
marked this pull request as ready for review
March 25, 2026 19:08
This reverts commit 978ca2a.
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
🤖 Models used:
📎 Log file uploaded as Gist (859KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
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.
Summary
Fixes #44
buildMessageWithLink()to return{ text, opts }whereopts.inlineKeyboardcontains a real Telegram inline keyboard URL button instead of embedding the URL as plain text in the messageton_bridge_open,ton_bridge_about,ton_bridge_custom_message) to pass theoptstosdk.telegram.sendMessage()Before / After
Before:
After:
Test plan
npm test) — 3 new inline keyboard tests addedton_bridge_open,ton_bridge_about,ton_bridge_custom_messageall sendinlineKeyboardoptsbuttonText(with or without emoji)startParamis still appended to the button URL when setbuttonTextandstartParamparams still work🤖 Generated with Claude Code