Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SendAudioRequest = SendAudioRequest {
- sendAudioChatId :: SomeChatId
- sendAudioMessageThreadId :: Maybe MessageThreadId
- sendAudioAudio :: InputFile
- sendAudioDuration :: Maybe Int
- sendAudioPerformer :: Maybe Text
- sendAudioTitle :: Maybe Text
- sendAudioThumb :: Maybe InputFile
- sendAudioCaption :: Maybe Text
- sendAudioParseMode :: Maybe ParseMode
- sendAudioCaptionEntities :: Maybe [MessageEntity]
- sendAudioDisableNotification :: Maybe Bool
- sendAudioProtectContent :: Maybe Bool
- sendAudioReplyToMessageId :: Maybe MessageId
- sendAudioAllowSendingWithoutReply :: Maybe Bool
- sendAudioReplyMarkup :: Maybe InlineKeyboardMarkup
- type SendAudioContent = "sendAudio" :> (MultipartForm Tmp SendAudioRequest :> Post '[JSON] (Response Message))
- type SendAudioLink = "sendAudio" :> (ReqBody '[JSON] SendAudioRequest :> Post '[JSON] (Response Message))
- sendAudio :: SendAudioRequest -> ClientM (Response Message)
sendAudio
data SendAudioRequest Source #
Request parameters for sendAudio
.
SendAudioRequest | |
|
Instances
type SendAudioContent = "sendAudio" :> (MultipartForm Tmp SendAudioRequest :> Post '[JSON] (Response Message)) Source #
type SendAudioLink = "sendAudio" :> (ReqBody '[JSON] SendAudioRequest :> Post '[JSON] (Response Message)) Source #
sendAudio :: SendAudioRequest -> ClientM (Response Message) Source #
Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format. On success, the sent Message is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future.
For sending voice messages, use the sendVoice method instead.