chatview

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadMoreHistoryMsg

type LoadMoreHistoryMsg struct {
	ChatId int64
}

type MediaPlayMsg

type MediaPlayMsg struct {
	Status string // "playing", "downloading", "error", "opened"
	Info   string
}

MediaPlayMsg is sent when media playback starts.

type MessageActionMsg

type MessageActionMsg struct {
	Action    string // "reply", "edit", "delete", "forward"
	ChatId    int64
	MessageId int64
}

type Model

type Model struct {
	// contains filtered or unexported fields
}

func New

func New(s *store.Store, tg *telegram.Client, th *theme.Theme) Model

func (*Model) OpenChat

func (m *Model) OpenChat(chatID int64, title string) tea.Cmd

func (*Model) ScrollByLines

func (m *Model) ScrollByLines(n int)

ScrollByLines scrolls the message view by n lines (positive = up/older).

func (*Model) SetFocused

func (m *Model) SetFocused(focused bool)

func (*Model) SetMyUserId

func (m *Model) SetMyUserId(id int64)

func (*Model) SetSize

func (m *Model) SetSize(w, h int)

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type ScrollToBottomMsg

type ScrollToBottomMsg struct{}

Jump to

Keyboard shortcuts

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