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

Telegram.Bot.API.Types.Document

Contents

Synopsis

Document

data Document Source #

This object represents a general file (as opposed to photos, voice messages and audio files).

Constructors

Document 

Fields

Instances

Instances details
Show Document Source # 
Instance details

Defined in Telegram.Bot.API.Types.Document

Generic Document Source # 
Instance details

Defined in Telegram.Bot.API.Types.Document

Associated Types

type Rep Document :: Type -> Type #

Methods

from :: Document -> Rep Document x #

to :: Rep Document x -> Document #

FromJSON Document Source # 
Instance details

Defined in Telegram.Bot.API.Types.Document

Methods

parseJSON :: Value -> Parser Document

parseJSONList :: Value -> Parser [Document]

ToJSON Document Source # 
Instance details

Defined in Telegram.Bot.API.Types.Document

Methods

toJSON :: Document -> Value

toEncoding :: Document -> Encoding

toJSONList :: [Document] -> Value

toEncodingList :: [Document] -> Encoding

type Rep Document Source # 
Instance details

Defined in Telegram.Bot.API.Types.Document

type Rep Document = D1 ('MetaData "Document" "Telegram.Bot.API.Types.Document" "telegram-bot-api-6.5-inplace" 'False) (C1 ('MetaCons "Document" 'PrefixI 'True) ((S1 ('MetaSel ('Just "documentFileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: (S1 ('MetaSel ('Just "documentFileUniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: S1 ('MetaSel ('Just "documentThumb") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PhotoSize)))) :*: (S1 ('MetaSel ('Just "documentFileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "documentMimeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "documentFileSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer))))))