Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type SendDocumentContent = "sendDocument" :> (MultipartForm Tmp SendDocumentRequest :> Post '[JSON] (Response Message))
- type SendDocumentLink = "sendDocument" :> (ReqBody '[JSON] SendDocumentRequest :> Post '[JSON] (Response Message))
- sendDocument :: SendDocumentRequest -> ClientM (Response Message)
- data SendDocumentRequest = SendDocumentRequest {
- sendDocumentChatId :: SomeChatId
- sendDocumentMessageThreadId :: Maybe MessageThreadId
- sendDocumentDocument :: DocumentFile
- sendDocumentThumb :: Maybe FilePath
- sendDocumentCaption :: Maybe Text
- sendDocumentParseMode :: Maybe ParseMode
- sendDocumentCaptionEntities :: Maybe [MessageEntity]
- sendDocumentDisableContentTypeDetection :: Maybe Bool
- sendDocumentDisableNotification :: Maybe Bool
- sendDocumentProtectContent :: Maybe Bool
- sendDocumentReplyToMessageId :: Maybe MessageId
- sendDocumentAllowSendingWithoutReply :: Maybe Bool
- sendDocumentReplyMarkup :: Maybe SomeReplyMarkup
- newtype DocumentFile = MakeDocumentFile InputFile
- pattern DocumentFileId :: FileId -> DocumentFile
- pattern DocumentUrl :: Text -> DocumentFile
- pattern DocumentFile :: FilePath -> ContentType -> DocumentFile
- toSendDocument :: SomeChatId -> DocumentFile -> SendDocumentRequest
sendDocument
type SendDocumentContent = "sendDocument" :> (MultipartForm Tmp SendDocumentRequest :> Post '[JSON] (Response Message)) Source #
type SendDocumentLink = "sendDocument" :> (ReqBody '[JSON] SendDocumentRequest :> Post '[JSON] (Response Message)) Source #
sendDocument :: SendDocumentRequest -> ClientM (Response Message) Source #
Use this method to send text messages.
On success, the sent Message
is returned.
data SendDocumentRequest Source #
Request parameters for sendDocument
SendDocumentRequest | |
|
Instances
newtype DocumentFile Source #
Instances
ToJSON DocumentFile Source # | |
Defined in Telegram.Bot.API.Methods.SendDocument toJSON :: DocumentFile -> Value # toEncoding :: DocumentFile -> Encoding # toJSONList :: [DocumentFile] -> Value # toEncodingList :: [DocumentFile] -> Encoding # |
pattern DocumentFileId :: FileId -> DocumentFile Source #
pattern DocumentUrl :: Text -> DocumentFile Source #
pattern DocumentFile :: FilePath -> ContentType -> DocumentFile Source #
toSendDocument :: SomeChatId -> DocumentFile -> SendDocumentRequest Source #
Generate send document structure.