handlers

package
v0.0.0-...-514f4a3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DurationTyping = 8 * time.Second
)

Variables

View Source
var (
	ErrTooLongUserMessage = errors.New("too long message")
)

Functions

func Private

func Private(
	botName string, client *tg.Client, openaiClient *openai.Client, rateLimiter *rate.Limiter,
) func(ctx context.Context, msg *tgb.MessageUpdate) error

func Public

func Public(me *tg.User) func(ctx context.Context, msg *tgb.MessageUpdate) error

func Reset

func Reset() func(ctx context.Context, msg *tgb.MessageUpdate) error

func Start

func Start(botName string) func(ctx context.Context, msg *tgb.MessageUpdate) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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