MessageOrigin

@Serializable(with = MessageOrigin.Companion::class)
sealed interface MessageOrigin

Inheritors

Types

Link copied to clipboard
object Companion : KSerializer<MessageOrigin>
Link copied to clipboard
@Serializable
data class HiddenUser(val name: String, val date: TelegramDate) : MessageOrigin
Link copied to clipboard
@Serializable(with = MessageOrigin.Companion::class)
sealed interface Public : MessageOrigin
Link copied to clipboard
@Serializable
data class Unknown : MessageOrigin
Link copied to clipboard
@Serializable
data class User(val user: User, val date: TelegramDate) : MessageOrigin

Properties

Link copied to clipboard
abstract val date: TelegramDate
Link copied to clipboard
abstract val type: String

Functions

Link copied to clipboard