helpmaker

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelpPrifex = "help_"
)

Variables

This section is empty.

Functions

func GetMainHelp

func GetMainHelp() string

func GetModuleHelp

func GetModuleHelp(module string) string

func GetPageHelp

func GetPageHelp(pageNumber int) [][]gotgbot.InlineKeyboardButton

func GetParseMode

func GetParseMode() string

func MakeHelp

func MakeHelp()

func PaginateModules

func PaginateModules(modules []string, helpColumns int, maxNum int, omitEntry bool) map[int][][]gotgbot.InlineKeyboardButton

func SetMainHelp

func SetMainHelp(help string, parsemode string)

func SetModuleHelp

func SetModuleHelp(module, help string)

Types

type Help

type Help struct {
	MainHelp         string
	ModHelp          map[string]string
	Parsemode        string
	PaginatedButtons map[int][][]gotgbot.InlineKeyboardButton
}

Jump to

Keyboard shortcuts

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