Skip to main content

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​

NameTypeRequiredDescription
BgPrimarybool—A dark blue color, recommended for main actions.
BgDangerbool—A red color, recommended for destructive actions.
BgSuccessbool—A green color, recommended for positive actions.
Iconint64—The ID of a custom emoji to be displayed before the button's label.

References​