telegram

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBot

func NewBot() func(param NewBotParam) (*tgbot.BotService, error)

func NewModules

func NewModules() fx.Option

func Run

func Run() func(bot *tgbot.BotService) error

Types

type NewBotParam

type NewBotParam struct {
	fx.In

	Lifecycle fx.Lifecycle

	Config *configs.Config
	Logger *logger.Logger
	Redis  *datastore.Redis

	Handlers   *handlers.Handlers
	Dispatcher *tgbot.Dispatcher

	ChatHistories *chathistories.Model
	TgChats       *tgchats.Model
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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