DateTimeFormatPart

@Serializable
sealed interface DateTimeFormatPart(source)

Common interface for parts of date time format. Used for dev.inmo.tgbotapi.types.message.textsources.DateTimeTextSource

See also

Inheritors

Types

Link copied to clipboard
@Serializable
sealed interface Date : DateTimeFormatPart

Group for date-related format parts

Link copied to clipboard
@Serializable
data object Relative : DateTimeFormatPart

Represents relative time format (e.g. "2 hours ago"). Control character: "r"

Link copied to clipboard
@Serializable
sealed interface Time : DateTimeFormatPart

Group for time-related format parts

Link copied to clipboard
@Serializable
data object WeekDay : DateTimeFormatPart

Represents day of the week format (e.g. "Monday"). Control character: "w"

Properties

Link copied to clipboard
abstract val controlCharacter: String

Character that represents this part in the format string. Used by TgDateTimeFormatBuilder.build