FullChatIdentifierSerializer

Serializes every ChatIdentifier subtype while preserving embedded request context.

Numeric identifiers use the following JSON representations:

Username uses the complete username string. Unlike ChatIdentifierSerializer, numeric subtype context survives a serialization round trip.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): ChatIdentifier
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: ChatIdentifier)