help

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMessages

func InitMessages(maxAliasLen, maxPackageNameLen int, reservedSymbols string, messageHandlers []base.MessageHandler)

func SendHelpMessage

func SendHelpMessage(appenv *base.ApplicationEnv, lc *loc.Context, msg *tgbotapi.Message)

Types

type CallbackHandler

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

func NewCallbackHandler added in v0.4.1

func NewCallbackHandler(appenv *base.ApplicationEnv) *CallbackHandler

func (*CallbackHandler) GetCallbackPrefix

func (*CallbackHandler) GetCallbackPrefix() string

func (*CallbackHandler) Handle

func (handler *CallbackHandler) Handle(reqenv *base.RequestEnv, query *tgbotapi.CallbackQuery)

type CommandHandler

type CommandHandler struct {
	base.CommandHandlerTrait
	common.GroupCommandTrait
	// contains filtered or unexported fields
}

func NewCommandHandler added in v0.4.1

func NewCommandHandler(appenv *base.ApplicationEnv) *CommandHandler

func (*CommandHandler) GetCommands added in v0.4.2

func (*CommandHandler) GetCommands() []string

func (*CommandHandler) GetScopes added in v1.2.0

func (*CommandHandler) GetScopes() []base.CommandScope

func (*CommandHandler) Handle

func (handler *CommandHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)

Jump to

Keyboard shortcuts

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