chat

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExportTypeTime string = "time"
	ExportTypeID   string = "id"
	ExportTypeLast string = "last"
)
View Source
const (
	DialogGroup   = "group"
	DialogPrivate = "private"
	DialogChannel = "channel"
	DialogUnknown = "unknown"
)

External designation, different from Telegram mtproto

Variables

This section is empty.

Functions

func Export added in v0.5.0

func Export(ctx context.Context, opts *ExportOptions) error

func List

func List(ctx context.Context, opts ListOptions) error

Types

type ExportOptions added in v0.7.0

type ExportOptions struct {
	Type        string
	Chat        string
	Thread      int // topic id in forum, message id in group
	Input       []int
	Output      string
	Filter      string
	OnlyMedia   bool
	WithContent bool
	Raw         bool
	All         bool
}

type ListOptions added in v0.9.0

type ListOptions struct {
	Output string
	Filter string
}

type Output added in v0.9.0

type Output string
var (
	OutputTable Output = "table"
	OutputJSON  Output = "json"
)

Jump to

Keyboard shortcuts

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