This constructor allows setting a custom background color and custom emoji label for a button, see here » for more info.
keyboardButtonStyle#4fdd3430 flags:# bg_primary:flags.0?true bg_danger:flags.1?true bg_success:flags.2?true icon:flags.3?long = KeyboardButtonStyle;
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| bg_primary | flags.0?true | A dark blue color, recommended for main actions. |
| bg_danger | flags.1?true | A red color, recommended for destructive actions. |
| bg_success | flags.2?true | A green color, recommended for positive actions. |
| icon | flags.3?long | The ID of a custom emoji to be displayed before the button's label. |
Telegram allows including animated and static custom emojis inside of messages.
Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.