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
BgPrimaryboolA dark blue color, recommended for main actions.
BgDangerboolA red color, recommended for destructive actions.
BgSuccessboolA green color, recommended for positive actions.
Iconint64The ID of a custom emoji to be displayed before the button's label.

References