MessageOrigin

@Serializable
sealed class MessageOrigin

This object describes the origin of a message. It can be one of

  • MessageOriginUser

  • MessageOriginHiddenUser

  • MessageOriginChat

  • MessageOriginChannel

Api reference

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "channel")
data class Channel(val date: Instant, val chat: Chat, val messageId: Long, val authorSignature: String? = null) : MessageOrigin
Link copied to clipboard
@Serializable
@SerialName(value = "chat")
data class ChatOrigin(val date: Instant, val senderChat: Chat, val authorSignature: String? = null) : MessageOrigin
Link copied to clipboard
@Serializable
@SerialName(value = "hidden_user")
data class HiddenUser(val date: Instant, val senderUserName: String) : MessageOrigin
Link copied to clipboard
@Serializable
@SerialName(value = "user")
data class UserOrigin(val date: Instant, val senderUser: User) : MessageOrigin

Properties

Link copied to clipboard
@Serializable(with = InstantSerializer::class)
abstract val date: Instant
Link copied to clipboard
open val from: User?
Link copied to clipboard
open val fromChat: Chat?
Link copied to clipboard
open val fromMessageId: Long?
Link copied to clipboard
open val senderName: String?
Link copied to clipboard
open val signature: String?
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard