mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
Merge branch 'master' into 9.3.0-RC
This commit is contained in:
commit
c4214798e3
@ -16,6 +16,11 @@ This release become possible thanks to [Anton Lakotka](https://youtrack.jetbrain
|
|||||||
* `Ktor`: `2.3.4` -> `2.3.5`
|
* `Ktor`: `2.3.4` -> `2.3.5`
|
||||||
* `MicroUtils`: `0.19.9` -> `0.20.8`
|
* `MicroUtils`: `0.19.9` -> `0.20.8`
|
||||||
|
|
||||||
|
## 9.2.3
|
||||||
|
|
||||||
|
* `Core`:
|
||||||
|
* Fix in `VoiceContent#createResend`
|
||||||
|
|
||||||
## 9.2.2
|
## 9.2.2
|
||||||
|
|
||||||
* `Core`:
|
* `Core`:
|
||||||
|
@ -10,6 +10,7 @@ import dev.inmo.tgbotapi.types.MessageThreadId
|
|||||||
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
|
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
|
||||||
import dev.inmo.tgbotapi.types.files.VoiceFile
|
import dev.inmo.tgbotapi.types.files.VoiceFile
|
||||||
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
|
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
|
||||||
|
import dev.inmo.tgbotapi.types.threadId
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@ -27,16 +28,16 @@ data class VoiceContent(
|
|||||||
allowSendingWithoutReply: Boolean?,
|
allowSendingWithoutReply: Boolean?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
): Request<ContentMessage<VoiceContent>> = SendVoice(
|
): Request<ContentMessage<VoiceContent>> = SendVoice(
|
||||||
chatId,
|
chatId = chatId,
|
||||||
media.fileId,
|
voice = media.fileId,
|
||||||
textSources,
|
entities = textSources,
|
||||||
media.duration,
|
threadId = messageThreadId,
|
||||||
messageThreadId,
|
duration = media.duration,
|
||||||
disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent,
|
protectContent = protectContent,
|
||||||
replyToMessageId,
|
replyToMessageId = replyToMessageId,
|
||||||
allowSendingWithoutReply,
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
replyMarkup
|
replyMarkup = replyMarkup
|
||||||
)
|
)
|
||||||
|
|
||||||
override fun asTelegramMedia(): TelegramMediaAudio = TelegramMediaAudio(
|
override fun asTelegramMedia(): TelegramMediaAudio = TelegramMediaAudio(
|
||||||
|
Loading…
Reference in New Issue
Block a user