From d6cef5984b9004c8fcf1f10ba26025412b228774 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 20 Dec 2021 12:47:55 +0600 Subject: [PATCH] filling of changelog and several fixes --- CHANGELOG.md | 14 +++++++++++++- .../types/message/abstracts/ContentMessage.kt | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e25d813423..266b1ce541 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,22 @@ # TelegramBotAPI changelog -## 0.37.2 +## 0.37.2 Telegram Bot API 5.5 * `Common`: * `Version`: * `MicroUtils`: `0.8.2` -> `0.8.7` +* `Core`: + * New request type: `ChatSenderRequest` + * New request `BanChatSenderChat` + * New request `UnbanChatSenderChat` + * `ExtendedPrivateChat` got new properties: `hasPrivateForwards` and `allowCreateUserIdLink` (same as `hasPrivateForwards`) + * All `ContentMessage` got field `forwardable` (old constructors marked as `Deprecated`) + * `ChannelContentMessage` has been divided for two interfaces (and corresponding classes): + * `ConnectedChannelContentMessage` (and `ConnectedChannelContentMessageImpl`) for connected to the group channels messages + * `UnconnectedChannelContentMessage` (and `UnconnectedChannelContentMessageImpl`) for unconnected channels +* `API`: + * New extensions `TelegramBot#banChatSenderChat` + * New extensions `TelegramBot#unbanChatSenderChat` * `Utils`: * Fix of `EntitiesBuilder#linkln` diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/ContentMessage.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/ContentMessage.kt index 228b3e8577..b27e7ab9ef 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/ContentMessage.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/ContentMessage.kt @@ -7,5 +7,5 @@ interface ContentMessage: Message { val content: T val hasProtectedContent: Boolean - get() = forwardable + get() = !forwardable }