Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackHandler ¶
type CallbackHandler struct { HandlerFunc GobotHandlerFunc Trigger *regexp.Regexp AdminOnly bool DeleteButton bool Cooldown time.Duration }
func (*CallbackHandler) Command ¶
func (h *CallbackHandler) Command() any
func (*CallbackHandler) Run ¶
func (h *CallbackHandler) Run(b *gotgbot.Bot, c GobotContext) error
type CommandHandler ¶
type CommandHandler struct { Trigger any HandlerFunc GobotHandlerFunc AdminOnly bool GroupOnly bool HandleEdits bool }
func (*CommandHandler) Command ¶
func (h *CommandHandler) Command() any
func (*CommandHandler) Run ¶
func (h *CommandHandler) Run(b *gotgbot.Bot, c GobotContext) error
type GobotContext ¶
type GobotHandlerFunc ¶
type GobotHandlerFunc func(b *gotgbot.Bot, c GobotContext) error
type Handler ¶
type Handler interface { Command() any Run(b *gotgbot.Bot, c GobotContext) error }
type InlineHandler ¶
type InlineHandler struct { HandlerFunc GobotHandlerFunc Trigger *regexp.Regexp AdminOnly bool CanBeUsedByEveryone bool }
func (*InlineHandler) Command ¶
func (h *InlineHandler) Command() any
func (*InlineHandler) Run ¶
func (h *InlineHandler) Run(b *gotgbot.Bot, c GobotContext) error
Click to show internal directories.
Click to hide internal directories.