tgbot

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MPL-2.0 Imports: 22 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 NewBot

func NewBot(token string) (*Bot, error)

func (*Bot) AddNode

func (p *Bot) AddNode(sender *tb.User, message *tb.Message, body string, depth int) bool

func (*Bot) Handle

func (p *Bot) Handle(endpoint interface{}, h tb.HandlerFunc, m ...tb.MiddlewareFunc)

func (*Bot) Start

func (p *Bot) Start()

type Init

type Init struct {
}

func (*Init) Init

func (p *Init) Init() (needRun bool, err error)

func (*Init) Name

func (p *Init) Name() string

func (*Init) WaitFinish

func (p *Init) WaitFinish()

Jump to

Keyboard shortcuts

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