common

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ColorPrimary   = lipgloss.Color("#7AA2F7")
	ColorSecondary = lipgloss.Color("#9ECE6A")
	ColorMuted     = lipgloss.Color("#565F89")
	ColorError     = lipgloss.Color("#F7768E")
	ColorWarning   = lipgloss.Color("#E0AF68")

	StyleTitle = lipgloss.NewStyle().
				Bold(true).
				Foreground(ColorPrimary)

	StyleSelected = lipgloss.NewStyle().
					Bold(true).
					Foreground(ColorPrimary)

	StyleMuted = lipgloss.NewStyle().
				Foreground(ColorMuted)

	StyleError = lipgloss.NewStyle().
				Foreground(ColorError)

	StyleSender = lipgloss.NewStyle().
				Bold(true).
				Foreground(ColorSecondary)

	StyleSenderSelf = lipgloss.NewStyle().
					Bold(true).
					Foreground(ColorPrimary)

	StyleTimestamp = lipgloss.NewStyle().
					Foreground(ColorMuted)

	StyleUnread = lipgloss.NewStyle().
				Bold(true).
				Foreground(ColorWarning)

	StyleMediaLabel = lipgloss.NewStyle().
					Foreground(lipgloss.Color("#7DCFFF"))
)

Functions

This section is empty.

Types

type AuthErrorMsg

type AuthErrorMsg = telegram.AuthErrorMsg

Re-export telegram messages as UI messages for convenience.

type AuthorizedMsg

type AuthorizedMsg = telegram.AuthorizedMsg

Re-export telegram messages as UI messages for convenience.

type ChatSelectedMsg

type ChatSelectedMsg struct {
	Chat telegram.Chat
}

ChatSelectedMsg is sent when a user selects a chat from the list.

type CodeSentMsg

type CodeSentMsg = telegram.CodeSentMsg

Re-export telegram messages as UI messages for convenience.

type DialogsErrorMsg

type DialogsErrorMsg = telegram.DialogsErrorMsg

Re-export telegram messages as UI messages for convenience.

type DialogsLoadedMsg

type DialogsLoadedMsg = telegram.DialogsLoadedMsg

Re-export telegram messages as UI messages for convenience.

type DownloadPhotoErrorMsg added in v0.1.1

type DownloadPhotoErrorMsg = telegram.DownloadPhotoErrorMsg

Re-export telegram messages as UI messages for convenience.

type DownloadPhotoMsg added in v0.1.1

type DownloadPhotoMsg = telegram.DownloadPhotoMsg

Re-export telegram messages as UI messages for convenience.

type FatalErrorMsg

type FatalErrorMsg struct {
	Err error
}

FatalErrorMsg is sent when the telegram client encounters a fatal error.

type ForwardDestSelectedMsg added in v0.2.0

type ForwardDestSelectedMsg struct {
	Chat telegram.Chat
}

ForwardDestSelectedMsg is sent when the user picks a destination chat for forwarding.

type ForwardErrorMsg added in v0.2.0

type ForwardErrorMsg = telegram.ForwardErrorMsg

Re-export telegram messages as UI messages for convenience.

type ForwardRequestMsg added in v0.2.0

type ForwardRequestMsg struct {
	FromChat   telegram.Chat
	MessageIDs []int
}

ForwardRequestMsg is sent when the user has selected messages and pressed 'f'.

type ForwardedMsg added in v0.2.0

type ForwardedMsg = telegram.ForwardedMsg

Re-export telegram messages as UI messages for convenience.

type HistoryErrorMsg

type HistoryErrorMsg = telegram.HistoryErrorMsg

Re-export telegram messages as UI messages for convenience.

type HistoryLoadedMsg

type HistoryLoadedMsg = telegram.HistoryLoadedMsg

Re-export telegram messages as UI messages for convenience.

type MessageSendErrorMsg

type MessageSendErrorMsg = telegram.MessageSendErrorMsg

Re-export telegram messages as UI messages for convenience.

type MessageSentMsg

type MessageSentMsg = telegram.MessageSentMsg

Re-export telegram messages as UI messages for convenience.

type Need2FAMsg

type Need2FAMsg = telegram.Need2FAMsg

Re-export telegram messages as UI messages for convenience.

type NeedAuthMsg

type NeedAuthMsg = telegram.NeedAuthMsg

Re-export telegram messages as UI messages for convenience.

type NewMessageMsg

type NewMessageMsg = telegram.NewMessageMsg

Re-export telegram messages as UI messages for convenience.

type OlderHistoryErrorMsg added in v0.2.0

type OlderHistoryErrorMsg = telegram.OlderHistoryErrorMsg

Re-export telegram messages as UI messages for convenience.

type OlderHistoryLoadedMsg added in v0.2.0

type OlderHistoryLoadedMsg = telegram.OlderHistoryLoadedMsg

Re-export telegram messages as UI messages for convenience.

type QRTokenMsg added in v0.2.0

type QRTokenMsg = telegram.QRTokenMsg

Re-export telegram messages as UI messages for convenience.

type ReactionsUpdatedMsg added in v0.2.0

type ReactionsUpdatedMsg = telegram.ReactionsUpdatedMsg

Re-export telegram messages as UI messages for convenience.

type SaveFileErrorMsg added in v0.1.1

type SaveFileErrorMsg = telegram.SaveFileErrorMsg

Re-export telegram messages as UI messages for convenience.

type SaveFileMsg added in v0.1.1

type SaveFileMsg = telegram.SaveFileMsg

Re-export telegram messages as UI messages for convenience.

type SearchErrorMsg added in v0.2.0

type SearchErrorMsg = telegram.SearchErrorMsg

Re-export telegram messages as UI messages for convenience.

type SearchResultMsg added in v0.2.0

type SearchResultMsg = telegram.SearchResultMsg

Re-export telegram messages as UI messages for convenience.

type StatusMsg

type StatusMsg struct {
	Text string
}

StatusMsg updates the status bar text.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL