bot

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBetaPayload

func NewBetaPayload(b *tb.Bot, user *tb.User) func(*beta.Beta)

NewBetaPayload returns beta payload.

func NewBot

func NewBot(pollerTimeout time.Duration,
	token string,
	srv service.Service,
	helpText, startText string,
) (*tb.Bot, error)

NewBot constructs new bot.

func Stringer

func Stringer(bot *tb.Bot, text string) func(*tb.Message)

Stringer is simple handler that just sends text.

Types

This section is empty.

Jump to

Keyboard shortcuts

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