mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-03-03 09:22:22 +00:00
small improvements
This commit is contained in:
@@ -152,7 +152,7 @@ data class CommonBot(
|
||||
data class CommonUser(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(idField)
|
||||
override val id: UserId,
|
||||
override val id: IdChatIdentifier,
|
||||
@SerialName(firstNameField)
|
||||
override val firstName: String,
|
||||
@SerialName(lastNameField)
|
||||
|
||||
@@ -756,7 +756,7 @@ internal data class RawMessage(
|
||||
)
|
||||
val actualForumChat = when (chat) {
|
||||
is PrivateForumChatImpl -> chat.copy(id = chatId)
|
||||
is CommonUser -> chat
|
||||
is CommonUser -> chat.copy(id = chatId)
|
||||
is CommonBot -> chat
|
||||
is PrivateChatImpl -> PrivateForumChatImpl(
|
||||
id = chatId,
|
||||
|
||||
Reference in New Issue
Block a user