1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-25 03:28:44 +00:00

small refactor of chat member

This commit is contained in:
InsanusMokrassar 2023-09-24 21:50:32 +06:00
parent 6273990b00
commit 6c4afac8f8
2 changed files with 8 additions and 2 deletions

View File

@ -5,7 +5,10 @@ import dev.inmo.tgbotapi.types.chat.User
import kotlinx.serialization.* import kotlinx.serialization.*
@Serializable @Serializable
data class LeftChatMemberImpl(@SerialName(userField) override val user: User) : LeftChatMember { data class LeftChatMemberImpl(
@SerialName(userField)
override val user: User
) : LeftChatMember {
@SerialName(statusField) @SerialName(statusField)
@Required @Required
override val status: ChatMember.Status override val status: ChatMember.Status

View File

@ -5,7 +5,10 @@ import dev.inmo.tgbotapi.types.chat.User
import kotlinx.serialization.* import kotlinx.serialization.*
@Serializable @Serializable
data class MemberChatMemberImpl(@SerialName(userField) override val user: User) : MemberChatMember { data class MemberChatMemberImpl(
@SerialName(userField)
override val user: User
) : MemberChatMember {
@SerialName(statusField) @SerialName(statusField)
@Required @Required
override val status: ChatMember.Status override val status: ChatMember.Status