botkit

package
v0.0.0-...-23b7d5e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJSON

func ParseJSON[T any](src string) (T, error)

Types

type Bot

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

func New

func New(api *tgbotapi.BotAPI) *Bot

func (*Bot) RegisterCmdView

func (b *Bot) RegisterCmdView(cmd string, view ViewFunc)

func (*Bot) Run

func (b *Bot) Run(ctx context.Context) error

type ViewFunc

type ViewFunc func(ctx context.Context, bot *tgbotapi.BotAPI, update tgbotapi.Update) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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