bot

package
v0.0.0-...-c5d1e48 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalCommandMapper = make(map[string]CommandHandler)

Functions

func RegisterCommands

func RegisterCommands(command string, f CommandHandler)

Types

type Bot

type Bot struct {
	Bot *tb.Bot
}

func New

func New(token string, poller *tb.LongPoller) (*Bot, error)

func (*Bot) ChatIdentifier

func (b *Bot) ChatIdentifier(c *tb.Chat) string

type CommandHandler

type CommandHandler func(b *Bot, m *tb.Message, params []string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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