bot

package
v0.0.0-...-8fb32ab Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler is the bot object

func New

func New(token, configDir, version string) (*Handler, error)

New creates a new bot given a Telegram token and config directory

func (*Handler) Loop

func (b *Handler) Loop()

Loop is the main logic loop, listening for posts or messages from user

Jump to

Keyboard shortcuts

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