MaybeInaccessibleMessage

@Serializable(with = MaybeInaccessibleMessage.Companion::class)
sealed class MaybeInaccessibleMessage

This object describes a message that can be inaccessible to the bot. It can be one of

  • Message

  • InaccessibleMessage

Api reference

Inheritors

Types

Link copied to clipboard
@Serializable
data class InaccessibleMessage(val chat: Chat, val messageId: Long, val date: Instant) : MaybeInaccessibleMessage

Properties

Link copied to clipboard
abstract val chat: Chat
Link copied to clipboard
@Serializable(with = InstantSerializer::class)
abstract val date: Instant
Link copied to clipboard
abstract val messageId: Long