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

Telegram.Bot.API.Types.InputMedia

Contents

Synopsis

InputMedia

data InputMediaGeneric Source #

Generic fields for all InputMedia structures

Constructors

InputMediaGeneric 

Fields

Instances

Instances details
ToJSON InputMediaGeneric Source # 
Instance details

Defined in Telegram.Bot.API.Types.InputMedia

Generic InputMediaGeneric Source # 
Instance details

Defined in Telegram.Bot.API.Types.InputMedia

Associated Types

type Rep InputMediaGeneric :: Type -> Type #

ToMultipart Tmp InputMediaGeneric Source # 
Instance details

Defined in Telegram.Bot.API.Types.InputMedia

type Rep InputMediaGeneric Source # 
Instance details

Defined in Telegram.Bot.API.Types.InputMedia

type Rep InputMediaGeneric = D1 ('MetaData "InputMediaGeneric" "Telegram.Bot.API.Types.InputMedia" "telegram-bot-api-6.7-8B5O9jcStFh8aacJiwZZeM" 'False) (C1 ('MetaCons "InputMediaGeneric" 'PrefixI 'True) ((S1 ('MetaSel ('Just "inputMediaGenericMedia") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile) :*: S1 ('MetaSel ('Just "inputMediaGenericCaption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "inputMediaGenericParseMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "inputMediaGenericCaptionEntities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MessageEntity])))))

data InputMediaGenericThumbnail Source #

Constructors

InputMediaGenericThumbnail 

Fields

  • inputMediaGenericGeneric :: InputMediaGeneric
     
  • inputMediaGenericThumbnail :: Maybe InputFile

    Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipartform-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach:file_attach_name” if the thumbnail was uploaded using multipartform-data under file_attach_name.

data InputMedia Source #

Constructors

InputMediaPhoto

Represents a photo to be sent.

Fields

InputMediaVideo

Represents a video to be sent.

Fields

InputMediaAnimation

Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.

Fields

InputMediaAudio

Represents an audio file to be treated as music to be sent.

Fields

InputMediaDocument

Represents a general file to be sent.

Fields

data InputFile Source #

Instances

Instances details
ToJSON InputFile Source # 
Instance details

Defined in Telegram.Bot.API.Types.InputMedia

Generic InputFile Source # 
Instance details

Defined in Telegram.Bot.API.Types.InputMedia

Associated Types

type Rep InputFile :: Type -> Type #

Show InputFile Source # 
Instance details

Defined in Telegram.Bot.API.Types.InputMedia

type Rep InputFile Source # 
Instance details

Defined in Telegram.Bot.API.Types.InputMedia

makeFile :: Text -> InputFile -> MultipartData Tmp -> MultipartData Tmp Source #

Multipart file helper