keyboardButtonStyle
This constructor allows setting a custom background color and custom emoji label for a button, see here » for more info.
type tg.KeyboardButtonStyle struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
BgPrimary | bool | — | A dark blue color, recommended for main actions. |
BgDanger | bool | — | A red color, recommended for destructive actions. |
BgSuccess | bool | — | A green color, recommended for positive actions. |
Icon | int64 | — | The ID of a custom emoji to be displayed before the button's label. |
References
- Official documentation
- Generated Go reference
- TL definition:
keyboardButtonStyle#4fdd3430