mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-23 02:28:45 +00:00
remove unnecessary FromUser usages
This commit is contained in:
parent
022e6f623a
commit
12a35da4b6
@ -1,6 +1,5 @@
|
|||||||
package dev.inmo.tgbotapi.types
|
package dev.inmo.tgbotapi.types
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.CommonAbstracts.FromUser
|
|
||||||
import dev.inmo.tgbotapi.types.ChatMember.abstracts.ChatMember
|
import dev.inmo.tgbotapi.types.ChatMember.abstracts.ChatMember
|
||||||
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
|
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
|
||||||
import kotlinx.serialization.SerialName
|
import kotlinx.serialization.SerialName
|
||||||
@ -11,7 +10,7 @@ data class ChatMemberUpdated(
|
|||||||
@SerialName(chatField)
|
@SerialName(chatField)
|
||||||
val chat: Chat,
|
val chat: Chat,
|
||||||
@SerialName(fromField)
|
@SerialName(fromField)
|
||||||
override val user: User,
|
val user: User,
|
||||||
@SerialName(dateField)
|
@SerialName(dateField)
|
||||||
val date: TelegramDate,
|
val date: TelegramDate,
|
||||||
@SerialName(oldChatMemberField)
|
@SerialName(oldChatMemberField)
|
||||||
@ -20,4 +19,4 @@ data class ChatMemberUpdated(
|
|||||||
val newChatMemberState: ChatMember,
|
val newChatMemberState: ChatMember,
|
||||||
@SerialName(inviteLinkField)
|
@SerialName(inviteLinkField)
|
||||||
val inviteLink: ChatInviteLink? = null
|
val inviteLink: ChatInviteLink? = null
|
||||||
) : FromUser
|
)
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package dev.inmo.tgbotapi.types.games
|
package dev.inmo.tgbotapi.types.games
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.CommonAbstracts.FromUser
|
|
||||||
import dev.inmo.tgbotapi.types.*
|
import dev.inmo.tgbotapi.types.*
|
||||||
import kotlinx.serialization.SerialName
|
import kotlinx.serialization.SerialName
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
@ -10,7 +9,7 @@ data class GameHighScore (
|
|||||||
@SerialName(positionField)
|
@SerialName(positionField)
|
||||||
val position: Long,
|
val position: Long,
|
||||||
@SerialName(userField)
|
@SerialName(userField)
|
||||||
override val user: User,
|
val user: User,
|
||||||
@SerialName(scoreField)
|
@SerialName(scoreField)
|
||||||
val score: Long
|
val score: Long
|
||||||
) : FromUser
|
)
|
@ -5,5 +5,5 @@ import dev.inmo.tgbotapi.types.User
|
|||||||
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.CommonEvent
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.CommonEvent
|
||||||
|
|
||||||
data class LeftChatMember(
|
data class LeftChatMember(
|
||||||
override val user: User
|
val user: User
|
||||||
): CommonEvent, FromUser
|
) : CommonEvent
|
||||||
|
Loading…
Reference in New Issue
Block a user