ReplyParameters

@Serializable(with = ReplyParameters.Serializer::class)
sealed interface ReplyParameters(source)

Inheritors

Types

Link copied to clipboard

Reply parameters targeting a regular message identified by messageId. A null chatIdentifier targets a message in the current chat; a non-null chatIdentifier targets a message in a different chat. Public construction uses the ReplyParameters(...) companion factories.

Link copied to clipboard
object Companion
Link copied to clipboard
@Serializable(with = ReplyParameters.Serializer::class)
data class Ephemeral(val ephemeralMessageId: EphemeralMessageId, val allowSendingWithoutReply: Boolean? = null, val checklistTaskId: ChecklistTaskId? = null, val pollOptionId: PollOptionPersistentId? = null) : ReplyParameters

Reply parameters targeting an incoming ephemeral message identified by ephemeralMessageId. The outgoing reply must also be ephemeral; chat and quote fields are unsupported for ephemeral replies. Type-neutral construction is available through the ReplyParameters(...) companion factory.

Link copied to clipboard
object Serializer : KSerializer<ReplyParameters>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val messageId: MessageId?
Link copied to clipboard