telegram-bot-api-7.4: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.Types.BackgroundFill

Synopsis

BackgroundFill

data BackgroundFill Source #

This object describes the way a background is filled based on the selected colors. Currently, it can be one of

  • BackgroundFillSolid
  • BackgroundFillGradient
  • BackgroundFillFreeformGradient

Constructors

BackgroundFillSolid

The background is filled using the selected color.

Fields

BackgroundFillGradient

The background is a gradient fill.

Fields

BackgroundFillFreeformGradient

The background is a freeform gradient that rotates after every message in the chat.

Fields

Instances

Instances details
FromJSON BackgroundFill Source # 
Instance details

Defined in Telegram.Bot.API.Types.BackgroundFill

ToJSON BackgroundFill Source # 
Instance details

Defined in Telegram.Bot.API.Types.BackgroundFill

Generic BackgroundFill Source # 
Instance details

Defined in Telegram.Bot.API.Types.BackgroundFill

Associated Types

type Rep BackgroundFill :: Type -> Type #

Show BackgroundFill Source # 
Instance details

Defined in Telegram.Bot.API.Types.BackgroundFill

type Rep BackgroundFill Source # 
Instance details

Defined in Telegram.Bot.API.Types.BackgroundFill

type Rep BackgroundFill = D1 ('MetaData "BackgroundFill" "Telegram.Bot.API.Types.BackgroundFill" "telegram-bot-api-7.4-KOlBWK6xJMuBW3gGLpeCBR" 'False) (C1 ('MetaCons "BackgroundFillSolid" 'PrefixI 'True) (S1 ('MetaSel ('Just "backgroundFillSolidType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "backgroundFillSolidColor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :+: (C1 ('MetaCons "BackgroundFillGradient" 'PrefixI 'True) ((S1 ('MetaSel ('Just "backgroundFillGradientType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "backgroundFillGradientTopColor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "backgroundFillGradientBottomColor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "backgroundFillGradientRotationAngle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :+: C1 ('MetaCons "BackgroundFillFreeformGradient" 'PrefixI 'True) (S1 ('MetaSel ('Just "backgroundFillFreeformGradientType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "backgroundFillFreeformGradientColors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int]))))