message

package
v0.0.0-...-d05a719 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPoint = 0.43

DefaultPoint ...

View Source
const LocalURL = "http://localhost:8080/ipfs/"

LocalURL ...

View Source
const ServerURL = "https://ipfs.io/ipfs/"

ServerURL ...

View Source
const WhiteSpace = " "

WhiteSpace ...

Variables

This section is empty.

Functions

func BootWithGAE

func BootWithGAE(path string, port string)

BootWithGAE ...

func BootWithUpdate

func BootWithUpdate(path string)

BootWithUpdate ...

func Download

func Download(message *tgbotapi.Message) (able tgbotapi.Chattable)

Download ...

func HookMessage

func HookMessage(update tgbotapi.Update, ct chan<- tgbotapi.Chattable)

HookMessage ...

func InitBoot

func InitBoot(botapi *tgbotapi.BotAPI)

InitBoot ...

func InitDB

func InitDB(name string, fns ...func(db *xorm.Engine)) (e error)

func List

func List(message *tgbotapi.Message) (ct []tgbotapi.Chattable)

List ...

func LoadProperty

func LoadProperty(pathname string) error

LoadProperty ...

func Recognition

func Recognition(message *tgbotapi.Message, id string) (able tgbotapi.Chattable, e error)

Recognition ...

func RunRecognition

func RunRecognition(ctx context.Context, path string) (result []string, e error)

RunRecognition ...

func ShowDatabaseSQL

func ShowDatabaseSQL() func(engine *xorm.Engine)

func Video

func Video(message *tgbotapi.Message, s string) (ct []tgbotapi.Chattable)

Video ...

Types

type Property

type Property struct {
	Welcome        string  `json:"welcome"`
	GroupName      string  `json:"group_name"`
	BotName        string  `json:"bot_name"`
	Host           string  `json:"host"`
	HookAddress    string  `json:"hook_address"`
	Token          string  `json:"token"`
	Download       string  `json:"download"`
	Recognition    string  `json:"recognition"`
	Database       string  `json:"database"`
	Point          float64 `json:"point"`
	RecognitionCMD string  `json:"recognition_cmd"`
	KnownPath      string  `json:"known_path"`
	Rule           string  `json:"rule"`
	LocalURL       string  `json:"local_url"`
}

Property ...

func GetProperty

func GetProperty() *Property

GetProperty ...

Jump to

Keyboard shortcuts

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