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

Telegram.Bot.API.Methods.SendPhoto

Synopsis

Available methods

sendPhoto

data SendPhotoRequest Source #

Request parameters for sendPhoto

Constructors

SendPhotoRequest 

Fields

Instances

Instances details
ToJSON SendPhotoRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SendPhoto

Generic SendPhotoRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SendPhoto

Associated Types

type Rep SendPhotoRequest :: Type -> Type #

ToMultipart Tmp SendPhotoRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SendPhoto

type Rep SendPhotoRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SendPhoto

type Rep SendPhotoRequest = D1 ('MetaData "SendPhotoRequest" "Telegram.Bot.API.Methods.SendPhoto" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "SendPhotoRequest" 'PrefixI 'True) (((S1 ('MetaSel ('Just "sendPhotoChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: (S1 ('MetaSel ('Just "sendPhotoMessageThreadId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageThreadId)) :*: S1 ('MetaSel ('Just "sendPhotoPhoto") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PhotoFile))) :*: (S1 ('MetaSel ('Just "sendPhotoThumb") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FilePath)) :*: (S1 ('MetaSel ('Just "sendPhotoCaption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sendPhotoParseMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ParseMode))))) :*: ((S1 ('MetaSel ('Just "sendPhotoCaptionEntities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MessageEntity])) :*: (S1 ('MetaSel ('Just "sendPhotoHasSpoiler") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "sendPhotoDisableNotification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "sendPhotoProtectContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "sendPhotoReplyToMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId))) :*: (S1 ('MetaSel ('Just "sendPhotoAllowSendingWithoutReply") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "sendPhotoReplyMarkup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SomeReplyMarkup)))))))

sendPhoto :: SendPhotoRequest -> ClientM (Response Message) Source #

Use this method to send photos. On success, the sent Message is returned.

https://core.telegram.org/bots/api#sendphoto