1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-03-03 17:32:23 +00:00

small improvements

This commit is contained in:
2026-02-16 15:05:37 +06:00
parent 0c87cf95eb
commit f7ee0828ce
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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,