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

Telegram.Bot.API.Types.MaskPosition

Contents

Synopsis

MaskPosition

data MaskPosition Source #

This object describes the position on faces where a mask should be placed by default.

Constructors

MaskPosition 

Fields

  • maskPositionPoint :: Text

    The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.

  • maskPositionXShift :: Float

    Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.

  • maskPositionYShift :: Float

    Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.

  • maskPositionScale :: Float

    Mask scaling coefficient. For example, 2.0 means double size.

Instances

Instances details
FromJSON MaskPosition Source # 
Instance details

Defined in Telegram.Bot.API.Types.MaskPosition

ToJSON MaskPosition Source # 
Instance details

Defined in Telegram.Bot.API.Types.MaskPosition

Generic MaskPosition Source # 
Instance details

Defined in Telegram.Bot.API.Types.MaskPosition

Associated Types

type Rep MaskPosition :: Type -> Type #

Show MaskPosition Source # 
Instance details

Defined in Telegram.Bot.API.Types.MaskPosition

type Rep MaskPosition Source # 
Instance details

Defined in Telegram.Bot.API.Types.MaskPosition

type Rep MaskPosition = D1 ('MetaData "MaskPosition" "Telegram.Bot.API.Types.MaskPosition" "telegram-bot-api-7.0-2XShkJeCLX71W7OKNKemWZ" 'False) (C1 ('MetaCons "MaskPosition" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maskPositionPoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "maskPositionXShift") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float)) :*: (S1 ('MetaSel ('Just "maskPositionYShift") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float) :*: S1 ('MetaSel ('Just "maskPositionScale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float))))