Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntitiesToANSI ¶
func EntitiesToANSI(text *telegram.FormattedText) string
EntitiesToANSI converts Telegram formatted text directly to ANSI escape codes.
func EntitiesToMarkdown ¶
func EntitiesToMarkdown(text *telegram.FormattedText) string
EntitiesToMarkdown converts Telegram formatted text entities to markdown.
func FormatLastSeen ¶
FormatLastSeen formats a user's last seen timestamp.
func FormatRelativeTime ¶
FormatRelativeTime returns a relative time string (e.g., "2m ago").
func FormatTimestamp ¶
FormatTimestamp formats a Unix timestamp for display.
Types ¶
type MessageRenderer ¶
type MessageRenderer struct {
// contains filtered or unexported fields
}
func NewMessageRenderer ¶
func NewMessageRenderer(th *theme.Theme) *MessageRenderer
func (*MessageRenderer) RenderMessage ¶
Click to show internal directories.
Click to hide internal directories.