Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type SendPhotoContent = "sendPhoto" :> (MultipartForm Tmp SendPhotoRequest :> Post '[JSON] (Response Message))
- type SendPhotoLink = "sendPhoto" :> (ReqBody '[JSON] SendPhotoRequest :> Post '[JSON] (Response Message))
- newtype PhotoFile = MakePhotoFile InputFile
- pattern PhotoFileId :: FileId -> PhotoFile
- pattern PhotoUrl :: Text -> PhotoFile
- pattern PhotoFile :: FilePath -> ContentType -> PhotoFile
- data SendPhotoRequest = SendPhotoRequest {
- sendPhotoChatId :: SomeChatId
- sendPhotoMessageThreadId :: Maybe MessageThreadId
- sendPhotoPhoto :: PhotoFile
- sendPhotoThumb :: Maybe FilePath
- sendPhotoCaption :: Maybe Text
- sendPhotoParseMode :: Maybe ParseMode
- sendPhotoCaptionEntities :: Maybe [MessageEntity]
- sendPhotoHasSpoiler :: Maybe Bool
- sendPhotoDisableNotification :: Maybe Bool
- sendPhotoProtectContent :: Maybe Bool
- sendPhotoReplyToMessageId :: Maybe MessageId
- sendPhotoAllowSendingWithoutReply :: Maybe Bool
- sendPhotoReplyMarkup :: Maybe SomeReplyMarkup
- sendPhoto :: SendPhotoRequest -> ClientM (Response Message)
Available methods
sendPhoto
type SendPhotoContent = "sendPhoto" :> (MultipartForm Tmp SendPhotoRequest :> Post '[JSON] (Response Message)) Source #
type SendPhotoLink = "sendPhoto" :> (ReqBody '[JSON] SendPhotoRequest :> Post '[JSON] (Response Message)) Source #
pattern PhotoFileId :: FileId -> PhotoFile Source #
data SendPhotoRequest Source #
Request parameters for sendPhoto
SendPhotoRequest | |
|