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

2.6 KiB

//docs/dev.inmo.tgbotapi.requests.send.media/SendVoice

SendVoice

[common]
Content
fun SendVoice(chatId: ChatIdentifier, voice: InputFile, caption: String? = null, parseMode: ParseMode? = null, duration: Long? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<VoiceContent>>
fun SendVoice(chatId: ChatIdentifier, voice: InputFile, entities: List<TextSource>, duration: Long? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<VoiceContent>>