1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-18 06:13:47 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.requests.send.media/-send-voice.md
2021-03-17 15:18:37 +00:00

13 lines
2.6 KiB
Markdown

//[docs](../../index.md)/[dev.inmo.tgbotapi.requests.send.media](index.md)/[SendVoice](-send-voice.md)
# SendVoice
[common]
Content
fun [SendVoice](-send-voice.md)(chatId: [ChatIdentifier](../dev.inmo.tgbotapi.types/-chat-identifier/index.md), voice: [InputFile](../dev.inmo.tgbotapi.requests.abstracts/-input-file/index.md), caption: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, parseMode: [ParseMode](../dev.inmo.tgbotapi.types.ParseMode/-parse-mode/index.md)? = null, duration: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)? = null, disableNotification: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false, replyToMessageId: [MessageIdentifier](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FMessageIdentifier%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)? = null, allowSendingWithoutReply: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? = null, replyMarkup: [KeyboardMarkup](../dev.inmo.tgbotapi.types.buttons/-keyboard-markup/index.md)? = null): [Request](../dev.inmo.tgbotapi.requests.abstracts/-request/index.md)<[ContentMessage](../dev.inmo.tgbotapi.types.message.abstracts/-content-message/index.md)<[VoiceContent](../dev.inmo.tgbotapi.types.message.content.media/-voice-content/index.md)>>
fun [SendVoice](-send-voice.md)(chatId: [ChatIdentifier](../dev.inmo.tgbotapi.types/-chat-identifier/index.md), voice: [InputFile](../dev.inmo.tgbotapi.requests.abstracts/-input-file/index.md), entities: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>, duration: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)? = null, disableNotification: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false, replyToMessageId: [MessageIdentifier](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FMessageIdentifier%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)? = null, allowSendingWithoutReply: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? = null, replyMarkup: [KeyboardMarkup](../dev.inmo.tgbotapi.types.buttons/-keyboard-markup/index.md)? = null): [Request](../dev.inmo.tgbotapi.requests.abstracts/-request/index.md)<[ContentMessage](../dev.inmo.tgbotapi.types.message.abstracts/-content-message/index.md)<[VoiceContent](../dev.inmo.tgbotapi.types.message.content.media/-voice-content/index.md)>>