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