mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-25 10:07:14 +00:00
small refactor of chat member
This commit is contained in:
parent
6273990b00
commit
6c4afac8f8
@ -5,7 +5,10 @@ import dev.inmo.tgbotapi.types.chat.User
|
||||
import kotlinx.serialization.*
|
||||
|
||||
@Serializable
|
||||
data class LeftChatMemberImpl(@SerialName(userField) override val user: User) : LeftChatMember {
|
||||
data class LeftChatMemberImpl(
|
||||
@SerialName(userField)
|
||||
override val user: User
|
||||
) : LeftChatMember {
|
||||
@SerialName(statusField)
|
||||
@Required
|
||||
override val status: ChatMember.Status
|
||||
|
@ -5,7 +5,10 @@ import dev.inmo.tgbotapi.types.chat.User
|
||||
import kotlinx.serialization.*
|
||||
|
||||
@Serializable
|
||||
data class MemberChatMemberImpl(@SerialName(userField) override val user: User) : MemberChatMember {
|
||||
data class MemberChatMemberImpl(
|
||||
@SerialName(userField)
|
||||
override val user: User
|
||||
) : MemberChatMember {
|
||||
@SerialName(statusField)
|
||||
@Required
|
||||
override val status: ChatMember.Status
|
||||
|
Loading…
Reference in New Issue
Block a user