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