Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SendVoiceRequest = SendVoiceRequest {
- sendVoiceChatId :: SomeChatId
- sendVoiceMessageThreadId :: Maybe MessageThreadId
- sendVoiceVoice :: InputFile
- sendVoiceCaption :: Maybe Text
- sendVoiceParseMode :: Maybe ParseMode
- sendVoiceCaptionEntities :: Maybe [MessageEntity]
- sendVoiceDuration :: Maybe Int
- sendVoiceDisableNotification :: Maybe Bool
- sendVoiceProtectContent :: Maybe Bool
- sendVoiceReplyToMessageId :: Maybe MessageId
- sendVoiceAllowSendingWithoutReply :: Maybe Bool
- sendVoiceReplyMarkup :: Maybe InlineKeyboardMarkup
- type SendVoiceContent = "sendVoice" :> (MultipartForm Tmp SendVoiceRequest :> Post '[JSON] (Response Message))
- type SendVoiceLink = "sendVoice" :> (ReqBody '[JSON] SendVoiceRequest :> Post '[JSON] (Response Message))
- sendVoice :: SendVoiceRequest -> ClientM (Response Message)
sendVoice
data SendVoiceRequest Source #
Request parameters for sendVoice
.
SendVoiceRequest | |
|
Instances
type SendVoiceContent = "sendVoice" :> (MultipartForm Tmp SendVoiceRequest :> Post '[JSON] (Response Message)) Source #
type SendVoiceLink = "sendVoice" :> (ReqBody '[JSON] SendVoiceRequest :> Post '[JSON] (Response Message)) Source #
sendVoice :: SendVoiceRequest -> ClientM (Response Message) Source #
Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.