mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
Fixes in ChatMemberSerializer#serialize method
This commit is contained in:
parent
69c5f1ae7d
commit
d450ed9126
@ -2,6 +2,9 @@
|
||||
|
||||
## 3.2.6
|
||||
|
||||
* `Core`:
|
||||
* Fixes in `ChatMemberSerializer#serialize` method
|
||||
|
||||
## 3.2.5
|
||||
|
||||
* `Common`:
|
||||
|
@ -34,12 +34,12 @@ object ChatMemberSerializer : KSerializer<ChatMember> {
|
||||
|
||||
override fun serialize(encoder: Encoder, value: ChatMember) {
|
||||
when (value) {
|
||||
is OwnerChatMember -> OwnerChatMember.serializer()
|
||||
is AdministratorChatMemberImpl -> AdministratorChatMemberImpl.serializer()
|
||||
is MemberChatMember -> MemberChatMemberImpl.serializer()
|
||||
is RestrictedChatMember -> RestrictedChatMember.serializer()
|
||||
is LeftChatMember -> LeftChatMemberImpl.serializer()
|
||||
is KickedChatMember -> KickedChatMember.serializer()
|
||||
is OwnerChatMember -> OwnerChatMember.serializer().serialize(encoder, value)
|
||||
is AdministratorChatMemberImpl -> AdministratorChatMemberImpl.serializer().serialize(encoder, value)
|
||||
is MemberChatMemberImpl -> MemberChatMemberImpl.serializer().serialize(encoder, value)
|
||||
is RestrictedChatMember -> RestrictedChatMember.serializer().serialize(encoder, value)
|
||||
is LeftChatMemberImpl -> LeftChatMemberImpl.serializer().serialize(encoder, value)
|
||||
is KickedChatMember -> KickedChatMember.serializer().serialize(encoder, value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user