filling of changelog and several fixes

This commit is contained in:
InsanusMokrassar 2021-12-20 12:47:55 +06:00
parent 49bea1bcef
commit d6cef5984b
2 changed files with 14 additions and 2 deletions

View File

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

View File

@ -7,5 +7,5 @@ interface ContentMessage<T: MessageContent>: Message {
val content: T
val hasProtectedContent: Boolean
get() = forwardable
get() = !forwardable
}