telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.Types.PhotoSize

Contents

Synopsis

PhotoSize

data PhotoSize Source #

This object represents one size of a photo or a file / sticker thumbnail.

Constructors

PhotoSize 

Fields

Instances

Instances details
Show PhotoSize Source # 
Instance details

Defined in Telegram.Bot.API.Types.PhotoSize

Generic PhotoSize Source # 
Instance details

Defined in Telegram.Bot.API.Types.PhotoSize

Associated Types

type Rep PhotoSize :: Type -> Type #

FromJSON PhotoSize Source # 
Instance details

Defined in Telegram.Bot.API.Types.PhotoSize

Methods

parseJSON :: Value -> Parser PhotoSize

parseJSONList :: Value -> Parser [PhotoSize]

ToJSON PhotoSize Source # 
Instance details

Defined in Telegram.Bot.API.Types.PhotoSize

Methods

toJSON :: PhotoSize -> Value

toEncoding :: PhotoSize -> Encoding

toJSONList :: [PhotoSize] -> Value

toEncodingList :: [PhotoSize] -> Encoding

type Rep PhotoSize Source # 
Instance details

Defined in Telegram.Bot.API.Types.PhotoSize

type Rep PhotoSize = D1 ('MetaData "PhotoSize" "Telegram.Bot.API.Types.PhotoSize" "telegram-bot-api-6.5-inplace" 'False) (C1 ('MetaCons "PhotoSize" 'PrefixI 'True) ((S1 ('MetaSel ('Just "photoSizeFileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: S1 ('MetaSel ('Just "photoSizeFileUniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId)) :*: (S1 ('MetaSel ('Just "photoSizeWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "photoSizeHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "photoSizeFileSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))))