Safe Haskell | None |
---|---|
Language | Haskell2010 |
Sending files
Synopsis
- data InputMediaAnimation = InputMediaAnimation {}
- data InputMediaAudio = InputMediaAudio {}
- data InputMediaDocument = InputMediaDocument {}
- data InputMediaVideo = InputMediaVideo {}
- data InputMediaPhoto = InputMediaPhoto {}
- type InputMedia = Union '[InputMediaAnimation, InputMediaDocument, InputMediaAudio, InputMediaVideo, InputMediaPhoto]
- data InputFile = InputFile {}
- type VideoOrPhoto = Union '[InputMediaPhoto, InputMediaVideo]
- newtype Cert = Cert InputFile
- newtype Thumb = Thumb InputFile
- newtype Photo = Photo InputFile
- newtype Doc = Doc InputFile
- newtype Animation = Animation InputFile
- newtype Audio = Audio InputFile
- newtype Voice = Voice InputFile
- newtype Video = Video InputFile
- newtype VideoNote = VideoNote InputFile
- newtype Sticker = Sticker InputFile
- newtype PngSticker = PngSticker InputFile
- newtype TgsSticker = TgsSticker InputFile
- newtype Media = Media InputFile
- readInput :: FilePath -> IO InputFile
Sending Media
data InputMediaAnimation Source #
Instances
data InputMediaAudio Source #
Instances
data InputMediaDocument Source #
Instances
data InputMediaVideo Source #
Instances
data InputMediaPhoto Source #
Instances
type InputMedia = Union '[InputMediaAnimation, InputMediaDocument, InputMediaAudio, InputMediaVideo, InputMediaPhoto] Source #
Uploading Files
Instances
Eq InputFile Source # | |
Show InputFile Source # | |
Generic InputFile Source # | |
Default InputFile Source # | |
Defined in Web.Telegram.Types.Internal.InputFile | |
type Rep InputFile Source # | |
Defined in Web.Telegram.Types.Internal.InputFile type Rep InputFile = D1 (MetaData "InputFile" "Web.Telegram.Types.Internal.InputFile" "telegram-types-0.1.0-6TiTf83FaoyKIwaUxcYK63" False) (C1 (MetaCons "InputFile" PrefixI True) (S1 (MetaSel (Just "fileName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "mimeType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "content") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString)))) |
type VideoOrPhoto = Union '[InputMediaPhoto, InputMediaVideo] Source #
Instances
Eq Cert Source # | |
Show Cert Source # | |
Generic Cert Source # | |
Default Cert Source # | |
Defined in Web.Telegram.Types.Internal.InputFile | |
ToMultipart Mem Cert Source # | |
Defined in Web.Telegram.Types.Internal.InputFile toMultipart :: Cert -> MultipartData Mem # | |
type Rep Cert Source # | |
Defined in Web.Telegram.Types.Internal.InputFile |
Instances
Eq Thumb Source # | |
Show Thumb Source # | |
Generic Thumb Source # | |
Default Thumb Source # | |
Defined in Web.Telegram.Types.Internal.InputFile | |
ToMultipart Mem Thumb Source # | |
Defined in Web.Telegram.Types.Internal.InputFile toMultipart :: Thumb -> MultipartData Mem # | |
type Rep Thumb Source # | |
Defined in Web.Telegram.Types.Internal.InputFile |
Instances
Eq Photo Source # | |
Show Photo Source # | |
Generic Photo Source # | |
Default Photo Source # | |
Defined in Web.Telegram.Types.Internal.InputFile | |
ToMultipart Mem Photo Source # | |
Defined in Web.Telegram.Types.Internal.InputFile toMultipart :: Photo -> MultipartData Mem # | |
type Rep Photo Source # | |
Defined in Web.Telegram.Types.Internal.InputFile |
Instances
Eq Doc Source # | |
Show Doc Source # | |
Generic Doc Source # | |
Default Doc Source # | |
Defined in Web.Telegram.Types.Internal.InputFile | |
ToMultipart Mem Doc Source # | |
Defined in Web.Telegram.Types.Internal.InputFile toMultipart :: Doc -> MultipartData Mem # | |
type Rep Doc Source # | |
Defined in Web.Telegram.Types.Internal.InputFile |
Instances
Eq Animation Source # | |
Show Animation Source # | |
Generic Animation Source # | |
Default Animation Source # | |
Defined in Web.Telegram.Types.Internal.InputFile | |
ToMultipart Mem Animation Source # | |
Defined in Web.Telegram.Types.Internal.InputFile toMultipart :: Animation -> MultipartData Mem # | |
type Rep Animation Source # | |
Defined in Web.Telegram.Types.Internal.InputFile |
Instances
Eq Audio Source # | |
Show Audio Source # | |
Generic Audio Source # | |
Default Audio Source # | |
Defined in Web.Telegram.Types.Internal.InputFile | |
ToMultipart Mem Audio Source # | |
Defined in Web.Telegram.Types.Internal.InputFile toMultipart :: Audio -> MultipartData Mem # | |
type Rep Audio Source # | |
Defined in Web.Telegram.Types.Internal.InputFile |
Instances
Eq Voice Source # | |
Show Voice Source # | |
Generic Voice Source # | |
Default Voice Source # | |
Defined in Web.Telegram.Types.Internal.InputFile | |
ToMultipart Mem Voice Source # | |
Defined in Web.Telegram.Types.Internal.InputFile toMultipart :: Voice -> MultipartData Mem # | |
type Rep Voice Source # | |
Defined in Web.Telegram.Types.Internal.InputFile |
Instances
Eq Video Source # | |
Show Video Source # | |
Generic Video Source # | |
Default Video Source # | |
Defined in Web.Telegram.Types.Internal.InputFile | |
ToMultipart Mem Video Source # | |
Defined in Web.Telegram.Types.Internal.InputFile toMultipart :: Video -> MultipartData Mem # | |
type Rep Video Source # | |
Defined in Web.Telegram.Types.Internal.InputFile |
Instances
Eq VideoNote Source # | |
Show VideoNote Source # | |
Generic VideoNote Source # | |
Default VideoNote Source # | |
Defined in Web.Telegram.Types.Internal.InputFile | |
ToMultipart Mem VideoNote Source # | |
Defined in Web.Telegram.Types.Internal.InputFile toMultipart :: VideoNote -> MultipartData Mem # | |
type Rep VideoNote Source # | |
Defined in Web.Telegram.Types.Internal.InputFile |
Instances
Eq Sticker Source # | |
Show Sticker Source # | |
Generic Sticker Source # | |
Default Sticker Source # | |
Defined in Web.Telegram.Types.Internal.InputFile | |
ToMultipart Mem Sticker Source # | |
Defined in Web.Telegram.Types.Internal.InputFile toMultipart :: Sticker -> MultipartData Mem # | |
type Rep Sticker Source # | |
Defined in Web.Telegram.Types.Internal.InputFile |
newtype PngSticker Source #
Instances
newtype TgsSticker Source #
Instances
Instances
Eq Media Source # | |
Show Media Source # | |
Generic Media Source # | |
Default Media Source # | |
Defined in Web.Telegram.Types.Internal.InputFile | |
ToMultipart Mem Media Source # | |
Defined in Web.Telegram.Types.Internal.InputFile toMultipart :: Media -> MultipartData Mem # | |
type Rep Media Source # | |
Defined in Web.Telegram.Types.Internal.InputFile |