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

Telegram.Bot.API.Types.BackgroundType

Synopsis

BackgroundType

data BackgroundType Source #

This object describes the type of a background. Currently, it can be one of

  • BackgroundTypeFill
  • BackgroundTypeWallpaper
  • BackgroundTypePattern
  • BackgroundTypeChatTheme

Constructors

BackgroundTypeFill

The background is automatically filled based on the selected colors.

Fields

BackgroundTypeWallpaper

The background is a wallpaper in the JPEG format.

Fields

BackgroundTypePattern

The background is a PNG or TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”) pattern to be combined with the background fill chosen by the user.

Fields

BackgroundTypeChatTheme

The background is taken directly from a built-in chat theme.

Fields

Instances

Instances details
FromJSON BackgroundType Source # 
Instance details

Defined in Telegram.Bot.API.Types.BackgroundType

ToJSON BackgroundType Source # 
Instance details

Defined in Telegram.Bot.API.Types.BackgroundType

Generic BackgroundType Source # 
Instance details

Defined in Telegram.Bot.API.Types.BackgroundType

Associated Types

type Rep BackgroundType :: Type -> Type #

Show BackgroundType Source # 
Instance details

Defined in Telegram.Bot.API.Types.BackgroundType

type Rep BackgroundType Source # 
Instance details

Defined in Telegram.Bot.API.Types.BackgroundType

type Rep BackgroundType = D1 ('MetaData "BackgroundType" "Telegram.Bot.API.Types.BackgroundType" "telegram-bot-api-7.4.4-fdOK3VCUfTCfzXncfzYz7" 'False) ((C1 ('MetaCons "BackgroundTypeFill" 'PrefixI 'True) (S1 ('MetaSel ('Just "backgroundTypeFillType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "backgroundTypeFillFill") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BackgroundFill) :*: S1 ('MetaSel ('Just "backgroundTypeFillDarkThemeDimming") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :+: C1 ('MetaCons "BackgroundTypeWallpaper" 'PrefixI 'True) ((S1 ('MetaSel ('Just "backgroundTypeWallpaperType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "backgroundTypeWallpaperDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Document)) :*: (S1 ('MetaSel ('Just "backgroundTypeWallpaperDarkThemeDimming") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "backgroundTypeWallpaperIsBlurred") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "backgroundTypeWallpaperIsMoving") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))))) :+: (C1 ('MetaCons "BackgroundTypePattern" 'PrefixI 'True) ((S1 ('MetaSel ('Just "backgroundTypePatternType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "backgroundTypePatternDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Document) :*: S1 ('MetaSel ('Just "backgroundTypePatternFill") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BackgroundFill))) :*: (S1 ('MetaSel ('Just "backgroundTypePatternIntensity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "backgroundTypePatternIsInverted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "backgroundTypePatternIsMoving") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))) :+: C1 ('MetaCons "BackgroundTypeChatTheme" 'PrefixI 'True) (S1 ('MetaSel ('Just "backgroundTypeChatThemeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "backgroundTypeChatThemeThemeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))