telegofx

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(withRouter bool) fx.Option

func RouterModule

func RouterModule() fx.Option

Types

type Bot

type Bot struct {
	*telego.Bot
	// contains filtered or unexported fields
}

func New

func New(config Config, options []telego.BotOption, logger *zap.Logger) (*Bot, error)

func (*Bot) Run

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

func (*Bot) Updates

func (b *Bot) Updates() <-chan telego.Update

type Config

type Config struct {
	Token string
}

type Router

type Router struct {
	*th.BotHandler
}

func NewRouter

func NewRouter(_ Config, bot *Bot) (*Router, error)

func (*Router) Start

func (r *Router) Start() error

func (*Router) Stop

func (r *Router) Stop(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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