1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-10-31 21:43:48 +00:00

update changelog

This commit is contained in:
InsanusMokrassar 2024-01-12 01:11:57 +06:00
parent 89524290c5
commit 4d92588390
5 changed files with 15 additions and 4 deletions

View File

@ -6,6 +6,17 @@
**IN THIS UPDATE KRYPTO DEPENDENCY CHANGED TO `com.soywiz.korge:korlibs-crypto` UP TO 5.3.0 VERSION** **IN THIS UPDATE KRYPTO DEPENDENCY CHANGED TO `com.soywiz.korge:korlibs-crypto` UP TO 5.3.0 VERSION**
* `Version`:
* `MicroUtils`: `0.20.23` -> `0.20.26`
* `Korlibs`: `4.0.10` -> `5.3.0`
* `Core`:
* `Message` now inherited by two variants: `AccessibleMessage` and `InaccessibleMessage`
* `Common`:
* In most places `disableWebPagePreview` has been replaced by new `LinkPreviewOptions`
* In most places arguments `replyToMessageId` and `allowSendingWithoutReply` has been replaced with
`ReplyParameters`
* In `reply` extension two parameters have been added: `replyInChatId` and `replyInThreadId`
## 9.4.3 ## 9.4.3
**IetfLanguageCode has been renamed to IetfLang in MicroUtils** **IetfLanguageCode has been renamed to IetfLang in MicroUtils**

View File

@ -13,7 +13,7 @@ ktor = "2.3.7"
ksp = "1.9.22-1.0.16" ksp = "1.9.22-1.0.16"
kotlin-poet = "1.15.3" kotlin-poet = "1.15.3"
microutils = "0.20.25" microutils = "0.20.26"
kslog = "1.3.1" kslog = "1.3.1"
versions = "0.50.0" versions = "0.50.0"

View File

@ -28,7 +28,7 @@ sealed interface ReplyInfo {
val messageMeta: Message.MetaInfo? val messageMeta: Message.MetaInfo?
data class Internal( data class Internal(
val message: AccessibleMessage val message: Message
): ReplyInfo { ): ReplyInfo {
override val messageMeta: Message.MetaInfo override val messageMeta: Message.MetaInfo
get() = message.metaInfo get() = message.metaInfo

View File

@ -251,7 +251,7 @@ internal data class RawMessage(
} }
} }
val asMessage: AccessibleMessage by lazy { val asMessage: Message by lazy {
if (date.date == 0L) { if (date.date == 0L) {
return@lazy InaccessibleMessage( return@lazy InaccessibleMessage(
chat, chat,

View File

@ -49,7 +49,7 @@ interface AccessibleMessage : Message
data class InaccessibleMessage( data class InaccessibleMessage(
override val chat: PreviewChat, override val chat: PreviewChat,
override val messageId: MessageId, override val messageId: MessageId,
) : AccessibleMessage { ) : Message {
override val date: DateTime override val date: DateTime
get() = DateTime.invoke(0L) get() = DateTime.invoke(0L)
} }