bot

package
v0.0.0-...-9135915 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

func New

func New(s *Settings) (*Bot, error)

func (*Bot) Start

func (b *Bot) Start()

func (*Bot) Stop

func (b *Bot) Stop()

type MsgFilterFunc

type MsgFilterFunc func(*tb.Message) (bool, error)

type MsgHandlerFunc

type MsgHandlerFunc func(*tb.Message) error

type Settings

type Settings struct {
	Token        string
	LastUpdateID int
	Storage      *Storage
	UpdateLogger *tglog.Logger
	Logger       log.UnsafeInfoErrorLogger
	SuperuserID  int64
}

type Storage

type Storage struct {
	Admins admins.AdminsRepo
	Roles  admins.RolesRepo
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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