From 3823b03453b92bf4bd20bc26976c0f36b7681971 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 5 Aug 2022 21:43:15 +0600 Subject: [PATCH] fixes --- CHANGELOG.md | 13 +++++++++++++ .../tgbotapi/utils/internal/ClassCastsIncluded.kt | 3 --- 2 files changed, 13 insertions(+), 3 deletions(-) delete mode 100644 tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/internal/ClassCastsIncluded.kt diff --git a/CHANGELOG.md b/CHANGELOG.md index 9531424bdc..08eae08ea7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## 3.0.0 +**ALL OLD DEPRECATIONS HAVE BEEN REMOVED** + +**`copyMessage` HAVE CHANGED THEIR SIGNATURE BY SWAPPING FROM AND TO CHAT IDS** + * `Versions`: * `Kotlin`: `1.6.21` -> `1.7.10` * `Serialization`: `1.3.3` -> `1.4.0-RC` @@ -10,8 +14,17 @@ * `MicroUtils`: `0.11.13` -> `0.12.0` * `Core`: * Interface `ReplyMakrup` has been renamed to `WithReplyMarkup` to correspond its purpose + * Data class `LeftChatMember` has been renamed to `LeftChatMemberEvent` to avoid type ambiguite with the other `LeftChatMember` + * `ForwardInfo` hierarchy has been fully reworked: + * `AnonymousForwardInfo` -> `ForwardInfo.ByAnonymous` + * `UserForwardInfo` -> `ForwardInfo.ByUser` + * `ForwardFromPublicChatInfo` -> `ForwardInfo.PublicChat` + * `ForwardFromChannelInfo` -> `ForwardInfo.PublicChat.FromChannel` + * `ForwardFromSupergroupInfo` -> `ForwardInfo.PublicChat.FromSupergroup` + * `ForwardInfo.PublicChat.SentByChannel` ___has been created___ * `API`: * Add new `Flow`-based live locations API + * Add `sendLocation` for sending live locations * `Utils`: * **BREAKING CHANGES** Now all new classcasts (like `Chat.ifPrivateChat` etc.) have been rewritten to be generated with `ksp` and `kotlin poet` diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/internal/ClassCastsIncluded.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/internal/ClassCastsIncluded.kt deleted file mode 100644 index cc46caee80..0000000000 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/internal/ClassCastsIncluded.kt +++ /dev/null @@ -1,3 +0,0 @@ -package dev.inmo.tgbotapi.utils.internal - -import dev.inmo.tgbotapi.utils.RiskFeature