Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Telegram.Bot.API.Methods.SendVideo
Contents
Synopsis
- data SendVideoRequest = SendVideoRequest {
- sendVideoBusinessConnectionId :: Maybe BusinessConnectionId
- sendVideoChatId :: SomeChatId
- sendVideoMessageThreadId :: Maybe MessageThreadId
- sendVideoVideo :: InputFile
- sendVideoDuration :: Maybe Int
- sendVideoWidth :: Maybe Int
- sendVideoHeight :: Maybe Int
- sendVideoThumbnail :: 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
- sendVideoReplyParameters :: Maybe ReplyParameters
- 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)
- defSendVideo :: SomeChatId -> InputFile -> SendVideoRequest
sendVideo
data SendVideoRequest Source #
Request parameters for sendVideo
.
Constructors
SendVideoRequest | |
Fields
|
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.
defSendVideo :: SomeChatId -> InputFile -> SendVideoRequest Source #