1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-25 19:48:43 +00:00

Merge pull request #796 from InsanusMokrassar/9.2.3

9.2.3
This commit is contained in:
InsanusMokrassar 2023-10-24 16:12:17 +06:00 committed by GitHub
commit fdf510153d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 12 deletions

View File

@ -1,5 +1,10 @@
# TelegramBotAPI changelog # TelegramBotAPI changelog
## 9.2.3
* `Core`:
* Fix in `VoiceContent#createResend`
## 9.2.2 ## 9.2.2
* `Core`: * `Core`:

View File

@ -6,4 +6,4 @@ kotlin.incremental=true
kotlin.incremental.js=true kotlin.incremental.js=true
library_group=dev.inmo library_group=dev.inmo
library_version=9.2.2 library_version=9.2.3

View File

@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-bin.zip

View File

@ -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(