Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Public = CommandScope{/* contains filtered or unexported fields */}
Functions ¶
func AddDefaultStart ¶ added in v0.9.33
func AddDefaultStart(commands Commands, registry telegram.CommandRegistry, version string)
Types ¶
type CommandScope ¶
type CommandScope struct {
ChatIDs, UserIDs map[telegram.ID]bool
// contains filtered or unexported fields
}
func (CommandScope) Labels ¶ added in v0.9.32
func (s CommandScope) Labels() metrics.Labels
func (CommandScope) Transform ¶ added in v0.9.32
func (s CommandScope) Transform(body func(scope telegram.BotCommandScope))
func (CommandScope) Wrap ¶
func (s CommandScope) Wrap(listener telegram.CommandListener) telegram.CommandListenerFunc
type Commands ¶
type Commands map[telegram.BotCommandScope]map[string]string
func (Commands) Add ¶
func (c Commands) Add(scope telegram.BotCommandScope, command, description string)
type Instance ¶
func (*Instance) ApplyExtensions ¶
type Scoped ¶
type Scoped interface {
CommandScope() CommandScope
}
Click to show internal directories.
Click to hide internal directories.