mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-10-29 07:53:04 +00:00
reworking of links extension
This commit is contained in:
1 parent
af1d6d6f1a
commit
6650dd9cfe
3 files changed
+71
-34
No files matched your search
@@ -10,9 +10,7 @@ import kotlinx.serialization.encoding.Encoder
|
||||
import kotlinx.serialization.json.*
|
||||
|
||||
@Serializable(UserSerializer::class)
|
||||
sealed class User : PrivateChat {
|
||||
abstract override val id: UserId
|
||||
}
|
||||
sealed class User : PrivateChat
|
||||
|
||||
@Serializable
|
||||
data class CommonUser(
|
||||
|
||||
+3
@@ -1,10 +1,13 @@
|
||||
package dev.inmo.tgbotapi.types.chat.abstracts
|
||||
|
||||
import dev.inmo.tgbotapi.types.ChatId
|
||||
import dev.inmo.tgbotapi.types.UserId
|
||||
import dev.inmo.tgbotapi.types.chat.PreviewChatSerializer
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable(PreviewChatSerializer::class)
|
||||
interface PrivateChat : Chat, UsernameChat {
|
||||
override val id: UserId
|
||||
val firstName: String
|
||||
val lastName: String
|
||||
}
|
||||
Reference in new issue
Block a user