resolve

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveChatDB

func ResolveChatDB(db *sql.DB, raw string) (int64, string, error)

ResolveChatDB resolves a user-supplied chat selector using only the local SQLite cache. Mirrors tgcli.resolve.resolve_chat_db.

Types

type Ambiguous

type Ambiguous struct {
	Raw        string
	Candidates [][2]any // [[id, title], ...]
}

Ambiguous matches Python tgcli.resolve.Ambiguous → exit 2 with candidates.

func (*Ambiguous) Error

func (e *Ambiguous) Error() string

type NotFound

type NotFound struct{ Msg string }

NotFound matches Python tgcli.resolve.NotFound → exit 4.

func NewNotFound

func NewNotFound(format string, a ...any) *NotFound

func (*NotFound) Error

func (e *NotFound) Error() string

Jump to

Keyboard shortcuts

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