types

package
v0.0.0-...-8a235ca Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandsOptions

type CommandsOptions struct {
	Services *types.BotServices
	Sessions SessionManager[Session]
	Commands *config.CommandsText
}

type HandlersSessionManager

type HandlersSessionManager[T Session] struct {
	mock.MockCaller
}

func (*HandlersSessionManager[T]) Get

func (*HandlersSessionManager[T]) Remove

func (s *HandlersSessionManager[T]) Remove() error

func (*HandlersSessionManager[T]) Update

func (s *HandlersSessionManager[T]) Update(update *telego.Update) error
type MainMenu struct {
	CurrentPage int
	TotalPages  int
}

type Session

type Session struct {
	Token string
}

type SessionManager

type SessionManager[T comparable] interface {
	Get(ctx context.Context) *T
	Update(update telego.Update) telego.Update
	Filter() filters.InlineQueryFilter
	Remove(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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