keyboardButtonStyle

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

Constructor schema is available as of layer 222. Switch »

Parameters

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.

Type

KeyboardButtonStyle

Related pages

Custom emojis

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

Buttons

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