Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionCommand ¶
type ActionCommand interface { CommandAction(update *telegramApi.Update, bot *telegramApi.BotAPI) error GetCommandName() string }
ActionCommand this is an interface for having the special methods of the commands
func GetEnabledCommands ¶
func GetEnabledCommands() []ActionCommand
GetEnabledCommands method responsible for returning all enabled commands
type Command ¶
Command basic structure to create a command
func (Command) GetCommandName ¶
GetCommandName method responsible for returning the command name
type HelpCommand ¶
type HelpCommand struct {
Command
}
HelpCommand this is the help command
func (HelpCommand) CommandAction ¶
func (c HelpCommand) CommandAction(update *telegramApi.Update, bot *telegramApi.BotAPI) error
CommandAction method responsible for showing the help message
type StartCommand ¶
type StartCommand struct {
Command
}
StartCommand this is the initial command
func (StartCommand) CommandAction ¶
func (c StartCommand) CommandAction(update *telegramApi.Update, bot *telegramApi.BotAPI) error
CommandAction method responsible for showing a welcome message
Click to show internal directories.
Click to hide internal directories.