ButtonStyle

class pyrogram.enums.ButtonStyle

Bases: AutoName

Visual style (colour) of an inline or reply keyboard button.

Maps to KeyboardButtonStyle in the MTProto layer and ButtonStyle in TDLib’s td_api.tl.

DEFAULT = 'default'

No special colour (theme default).

PRIMARY = 'primary'

Dark-blue / accent colour.

DANGER = 'danger'

Red (destructive actions).

SUCCESS = 'success'

Green (confirmation actions).