handler

package
v0.0.0-...-dd30ac6 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxAlbumSize = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminHandler

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

func NewAdminHandler

func NewAdminHandler(cli *telegram.Client, sm *streaming.Manager) *AdminHandler

func (*AdminHandler) HandleStats

func (h *AdminHandler) HandleStats(ctx context.Context, e tg.Entities, msg *tg.Message) error

type BasicHandler

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

func NewBasicHandler

func NewBasicHandler(cli *telegram.Client) *BasicHandler

func (*BasicHandler) HandleHelp

func (h *BasicHandler) HandleHelp(ctx context.Context, e tg.Entities, msg *tg.Message) error

func (*BasicHandler) HandleStart

func (h *BasicHandler) HandleStart(ctx context.Context, e tg.Entities, msg *tg.Message) error

func (*BasicHandler) HandleUnknown

func (h *BasicHandler) HandleUnknown(ctx context.Context, e tg.Entities, msg *tg.Message) error

type DownloadHandler

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

func NewDownloadHandler

func NewDownloadHandler(sm *streaming.Manager, cli *telegram.Client) *DownloadHandler

func (*DownloadHandler) Handle

func (h *DownloadHandler) Handle(ctx context.Context, e tg.Entities, msg *tg.Message, url string, audioOnly bool) error

type SpeedtestHandler

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

func NewSpeedtestHandler

func NewSpeedtestHandler(cli *telegram.Client) *SpeedtestHandler

func (*SpeedtestHandler) Handle

func (h *SpeedtestHandler) Handle(ctx context.Context, e tg.Entities, msg *tg.Message) error

Jump to

Keyboard shortcuts

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