Skip to content

Add support for custom icon emoji in bottom buttons (Mini Apps v9.5)#866

Merged
heyqbnk merged 2 commits into
Telegram-Mini-Apps:masterfrom
wishyoudie:feature/button-custom-icon
Apr 3, 2026
Merged

Add support for custom icon emoji in bottom buttons (Mini Apps v9.5)#866
heyqbnk merged 2 commits into
Telegram-Mini-Apps:masterfrom
wishyoudie:feature/button-custom-icon

Conversation

@wishyoudie
Copy link
Copy Markdown
Contributor

@wishyoudie wishyoudie commented Apr 1, 2026

Added support for custom icons (represented as custom emoji ids) in bottom bar buttons (MainButton, SecondaryButton). Custom icon is a string parameter, set to empty string by default. They were added in Bot API v9.5 on March 1st.

Custom icons can be seen in action in asmico bot. At the time of writing, they are not supported on macOS client (they appear invisible), but at least iOS and webk clients work fine.

Demo was captured in webk and scaffolded from apps/playground with the following code:

import { init, mainButton } from "@/sdk";

init();
mainButton.mount();
mainButton.setParams({
  text: "Hello",
  textColor: "#ffffff",
  bgColor: "#000000",
  iconCustomEmojiId: "5465665476971471368",
  isVisible: true,
});

// mainButton.setIconCustomEmojiId("5465665476971471368"); // also checked with standalone method
image

@heyqbnk heyqbnk merged commit 335ee64 into Telegram-Mini-Apps:master Apr 3, 2026
1 check passed
@heyqbnk
Copy link
Copy Markdown
Member

heyqbnk commented Apr 3, 2026

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants