commands

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHandlerNotFound = errors.Business("handler %s not found", "TC:001")
View Source
var ErrMissingText = errors.Business("Text must be defined", "TC:002")

Functions

func BuildCoverParams added in v0.11.0

func BuildCoverParams(msg *telebot.Message) (covers.Size, string)

Types

type Commands

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

func New

func New(cfg config.AppConfig, youtube ytube.Service, db database.Database) Commands

func (Commands) Address

func (h Commands) Address(tx telebot.Context) error

func (Commands) Backup

func (h Commands) Backup(tx telebot.Context) error

func (Commands) Calendar

func (h Commands) Calendar(tx telebot.Context) error

func (Commands) Cover

func (h Commands) Cover(tx telebot.Context) error

func (Commands) Exec

func (h Commands) Exec(tx telebot.Context) error

func (Commands) Load

func (h Commands) Load(tx telebot.Context) error

func (Commands) Me

func (h Commands) Me(tx telebot.Context) error

func (Commands) Pix

func (h Commands) Pix(tx telebot.Context) error

func (Commands) Setup

func (h Commands) Setup(ctx context.Context, bot *telebot.Bot) error

func (Commands) Start

func (h Commands) Start(tx telebot.Context) error

func (Commands) System

func (h Commands) System(tx telebot.Context) error

func (Commands) Videos

func (h Commands) Videos(tx telebot.Context) error

Jump to

Keyboard shortcuts

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