telegram

package
v0.0.0-...-e3b2f93 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: Unlicense Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdStop = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdId

type CmdId int

type CommandCtx

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

func (*CommandCtx) Args

func (this *CommandCtx) Args() string

func (*CommandCtx) Command

func (this *CommandCtx) Command() string

func (*CommandCtx) HideKeyboard

func (this *CommandCtx) HideKeyboard()

func (*CommandCtx) HideUserCommand

func (this *CommandCtx) HideUserCommand()

func (*CommandCtx) Message

func (this *CommandCtx) Message() string

func (*CommandCtx) Reply

func (this *CommandCtx) Reply(text string)

func (*CommandCtx) ReplyNoCitation

func (this *CommandCtx) ReplyNoCitation(text string)

func (*CommandCtx) ReplyTo

func (this *CommandCtx) ReplyTo(text string, cid string, useCitation bool)

func (*CommandCtx) SayToChat

func (this *CommandCtx) SayToChat(text string, cid string)

func (*CommandCtx) ShowKeyboard

func (this *CommandCtx) ShowKeyboard(keyboard [][]string)

func (*CommandCtx) UploadPNG

func (this *CommandCtx) UploadPNG(buffer *bytes.Buffer, useCitation bool)

func (*CommandCtx) User

func (this *CommandCtx) User() string

func (*CommandCtx) UserId

func (this *CommandCtx) UserId() string

type Listener

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

func NewListener

func NewListener(cfg *config.Config, botCtx *bot.Context, logger *history.Logger) (*Listener, error)

func (*Listener) PushMessage

func (this *Listener) PushMessage(channelId string, cmdLine string)

func (*Listener) Start

func (this *Listener) Start(cmdHandler *cmdprocessor.CmdRegistry)

func (*Listener) Stop

func (this *Listener) Stop()

type ListenerCmd

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

Jump to

Keyboard shortcuts

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