di

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BotServiceName = "botService"
View Source
var Container di.Container

Functions

func BotService added in v1.9.5

func BotService(configFilePath string, registerRouteFunction RouteRegisterFunc) *di.Def

func GetBot

func GetBot() tele.Bot

func Init

func Init(configFilePath string, registerRouteFunction RouteRegisterFunc)

func Start

func Start()

Types

type Ctx added in v1.9.7

type Ctx interface {
	GetLocales() []string

	Text(key string, l string, args ...any) string
	Keyboard(text string, l ...string) tele.ReplyMarkup
}
var Context Ctx = ctx

type RouteRegisterFunc

type RouteRegisterFunc func(bot tele.Bot) error

Jump to

Keyboard shortcuts

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