Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SendVideoRequest = SendVideoRequest {
- sendVideoChatId :: SomeChatId
- sendVideoMessageThreadId :: Maybe MessageThreadId
- sendVideoVideo :: InputFile
- sendVideoDuration :: Maybe Int
- sendVideoWidth :: Maybe Int
- sendVideoHeight :: Maybe Int
- sendVideoThumb :: Maybe InputFile
- sendVideoCaption :: Maybe Text
- sendVideoParseMode :: Maybe ParseMode
- sendVideoCaptionEntities :: Maybe [MessageEntity]
- sendVideoHasSpoiler :: Maybe Bool
- sendVideoSupportsStreaming :: Maybe Bool
- sendVideoDisableNotification :: Maybe Bool
- sendVideoProtectContent :: Maybe Bool
- sendVideoReplyToMessageId :: Maybe MessageId
- sendVideoAllowSendingWithoutReply :: Maybe Bool
- sendVideoReplyMarkup :: Maybe InlineKeyboardMarkup
- type SendVideoContent = "sendVideo" :> (MultipartForm Tmp SendVideoRequest :> Post '[JSON] (Response Message))
- type SendVideoLink = "sendVideo" :> (ReqBody '[JSON] SendVideoRequest :> Post '[JSON] (Response Message))
- sendVideo :: SendVideoRequest -> ClientM (Response Message)
sendVideo
data SendVideoRequest Source #
Request parameters for sendVideo
.
SendVideoRequest | |
|
Instances
type SendVideoContent = "sendVideo" :> (MultipartForm Tmp SendVideoRequest :> Post '[JSON] (Response Message)) Source #
type SendVideoLink = "sendVideo" :> (ReqBody '[JSON] SendVideoRequest :> Post '[JSON] (Response Message)) Source #
sendVideo :: SendVideoRequest -> ClientM (Response Message) Source #
Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document). On success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future.