keyboardButtonStyle #

This constructor allows setting a custom background color and custom emoji label for a button, see here » for more info.

Layer 223

keyboardButtonStyle#4fdd3430 flags:# bg_primary:flags.0?true bg_danger:flags.1?true bg_success:flags.2?true icon:flags.3?long = KeyboardButtonStyle;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
bg_primaryflags.0?trueA dark blue color, recommended for main actions.
bg_dangerflags.1?trueA red color, recommended for destructive actions.
bg_successflags.2?trueA green color, recommended for positive actions.
iconflags.3?longThe ID of a custom emoji to be displayed before the button's label.

Type #

KeyboardButtonStyle

Custom emojis #

Telegram allows including animated and static custom emojis inside of messages.

Bot buttons #

Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.