core

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCommand = errors.New("invalid command")

Functions

This section is empty.

Types

type ControlButtons

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

func NewControlButtons

func NewControlButtons() *ControlButtons

func (*ControlButtons) Add

func (b *ControlButtons) Add(commands telegram.CommandRegistry, userIDs map[telegram.ID]bool, chatIDs map[telegram.ID]bool)

func (*ControlButtons) Keyboard

func (b *ControlButtons) Keyboard(userID, chatID telegram.ID) telegram.ReplyMarkup

func (*ControlButtons) Output

func (b *ControlButtons) Output(client telegram.Client, cmd *telegram.Command) *output.Paged

type JobReport

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

func NewJobReport

func NewJobReport() *JobReport

func (*JobReport) Dump

func (r *JobReport) Dump() []string

func (*JobReport) Error

func (r *JobReport) Error(title, pattern string, args ...interface{})

func (*JobReport) Success

func (r *JobReport) Success(title, pattern string, args ...interface{})

Jump to

Keyboard shortcuts

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