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

Telegram.Bot.API.Types.Sticker

Synopsis

Sticker

data Sticker Source #

This object represents a sticker.

Constructors

Sticker 

Fields

Instances

Instances details
Show Sticker Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

Generic Sticker Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

Associated Types

type Rep Sticker :: Type -> Type #

Methods

from :: Sticker -> Rep Sticker x #

to :: Rep Sticker x -> Sticker #

FromJSON Sticker Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

Methods

parseJSON :: Value -> Parser Sticker

parseJSONList :: Value -> Parser [Sticker]

ToJSON Sticker Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

Methods

toJSON :: Sticker -> Value

toEncoding :: Sticker -> Encoding

toJSONList :: [Sticker] -> Value

toEncodingList :: [Sticker] -> Encoding

type Rep Sticker Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

type Rep Sticker = D1 ('MetaData "Sticker" "Telegram.Bot.API.Types.Sticker" "telegram-bot-api-6.5-inplace" 'False) (C1 ('MetaCons "Sticker" 'PrefixI 'True) (((S1 ('MetaSel ('Just "stickerFileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: (S1 ('MetaSel ('Just "stickerFileUniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: S1 ('MetaSel ('Just "stickerWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: (S1 ('MetaSel ('Just "stickerHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "stickerIsAnimated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "stickerIsVideo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "stickerThumb") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PhotoSize)) :*: (S1 ('MetaSel ('Just "stickerEmoji") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "stickerSetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "stickerPremiumAnimation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe File)) :*: S1 ('MetaSel ('Just "stickerMaskPosition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MaskPosition))) :*: (S1 ('MetaSel ('Just "stickerCustomEmojiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "stickerFileSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)))))))

StickerSet

data StickerSet Source #

This object represents a sticker set.

Constructors

StickerSet 

Fields

Instances

Instances details
Show StickerSet Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

Generic StickerSet Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

Associated Types

type Rep StickerSet :: Type -> Type #

FromJSON StickerSet Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

Methods

parseJSON :: Value -> Parser StickerSet

parseJSONList :: Value -> Parser [StickerSet]

ToJSON StickerSet Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

Methods

toJSON :: StickerSet -> Value

toEncoding :: StickerSet -> Encoding

toJSONList :: [StickerSet] -> Value

toEncodingList :: [StickerSet] -> Encoding

type Rep StickerSet Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

type Rep StickerSet = D1 ('MetaData "StickerSet" "Telegram.Bot.API.Types.Sticker" "telegram-bot-api-6.5-inplace" 'False) (C1 ('MetaCons "StickerSet" 'PrefixI 'True) (((S1 ('MetaSel ('Just "stickerSetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "stickerSetTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "stickerSetType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StickerSetType) :*: S1 ('MetaSel ('Just "stickerSetIsAnimated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "stickerSetIsVideo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "stickerSetContainsMasks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "stickerSetStickers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Sticker]) :*: S1 ('MetaSel ('Just "stickerSetThumb") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PhotoSize))))))

data StickerSetType Source #

Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”.

Instances

Instances details
Eq StickerSetType Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

Show StickerSetType Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

Generic StickerSetType Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

Associated Types

type Rep StickerSetType :: Type -> Type #

FromJSON StickerSetType Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

Methods

parseJSON :: Value -> Parser StickerSetType

parseJSONList :: Value -> Parser [StickerSetType]

ToJSON StickerSetType Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

Methods

toJSON :: StickerSetType -> Value

toEncoding :: StickerSetType -> Encoding

toJSONList :: [StickerSetType] -> Value

toEncodingList :: [StickerSetType] -> Encoding

type Rep StickerSetType Source # 
Instance details

Defined in Telegram.Bot.API.Types.Sticker

type Rep StickerSetType = D1 ('MetaData "StickerSetType" "Telegram.Bot.API.Types.Sticker" "telegram-bot-api-6.5-inplace" 'False) (C1 ('MetaCons "StickerSetTypeRegular" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "StickerSetTypeMask" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "StickerSetTypeCustomEmoji" 'PrefixI 'False) (U1 :: Type -> Type)))