Repository navigation
fix(telegram): pass button styles to inline keyboards - #1175
Open
stickerdaniel wants to merge 1 commit into
Open
stickerdaniel wants to merge 1 commit into
stickerdaniel wants to merge 1 commit into
Conversation
Signed-off-by: Daniel Sticker <daniel.sticker@rwth-aachen.de>
stickerdaniel
requested review from
a team
and
a balanced review from Copilot
November 17, 2026 05:36
Contributor
|
@stickerdaniel is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
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
On Telegram,
ButtonandLinkButtonstyleis ignored: approve and reject buttons are shown in the same color. Each inline keyboard button is built fromtextpluscallback_dataorurl, andstyleis dropped. Astylefield was added to inline keyboard buttons in Bot API 9.4.With this change,
"primary"and"danger"are sent as Telegram'sstyleand shown in blue and red. For"default", nostyleis sent, as on Slack.Test plan
primarybutton, adangerbutton and aprimarylink button through the built adapter, withfetchstubbed. Onmain, nostyleis set in thesendMessagekeyboard. With this change, each button has itsstyleset.cards.test.ts: red onmain, green with this change.pnpm --filter @chat-adapter/telegram test(580 passed) andpnpm validate.reply_markup.inline_keyboardbefore and afterChecklist
git commit -s)pnpm validatepassesImplemented with Claude Opus 5.5 (high) and reviewed with GPT-6 (Extra High) in Claude Code via T3 Code.