groupinfo

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model is the group/channel info panel component.

func New

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

New creates a new group info model.

func (Model) IsVisible

func (m Model) IsVisible() bool

IsVisible returns whether the panel is visible.

func (*Model) OpenGroupInfo

func (m *Model) OpenGroupInfo(chatID int64) tea.Cmd

OpenGroupInfo loads group/channel info for a chat.

func (*Model) SetFocused

func (m *Model) SetFocused(focused bool)

SetFocused sets focus state.

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

SetSize sets the component dimensions.

func (*Model) SetVisible

func (m *Model) SetVisible(visible bool)

SetVisible shows or hides the panel.

func (Model) Update

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

Update handles messages.

func (Model) View

func (m Model) View() string

View renders the group info panel.

Jump to

Keyboard shortcuts

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