types

package
v0.0.0-...-036093c Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2016 License: GPL-3.0 Imports: 1 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name      string
	Desc      string
	Args      string
	ArgNum    int
	Debug     bool
	Processor CommandProcessor
}

type CommandMap

type CommandMap map[string]Command

type CommandProcessor

type CommandProcessor interface {
	Command(name string, msg telegram.TObject, args []string)
	Default(name string, msg telegram.TObject, state *map[string]interface{})
}

type Grabber

type Grabber struct {
	Name      string
	Uid       int64
	Chat      int64
	Processor CommandProcessor
}

Jump to

Keyboard shortcuts

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