Documentation ¶
Index ¶
Constants ¶
View Source
const DATE_FORMAT = "02/01/2006 15:04:05"
Variables ¶
View Source
var ChatUserID string
Functions ¶
Types ¶
type BaseCmd ¶
type BaseCmd interface {
Run(bot *tgbotapi.BotAPI, chatMessage *tgbotapi.Message) error
}
Command interface
type NotCmd ¶
type NotCmd struct {
// contains filtered or unexported fields
}
not a command message
type RemindCmd ¶
type RemindCmd struct {
// contains filtered or unexported fields
}
'/remind' command
func NewRemindCmd ¶
func NewRemindCmd() *RemindCmd
type RemindStep ¶
type RemindStep struct {
// contains filtered or unexported fields
}
func NewRemindStep ¶
func NewRemindStep(parent *RemindCmd) *RemindStep
func (*RemindStep) Run ¶
func (step *RemindStep) Run(bot *tgbotapi.BotAPI, chatMessage *tgbotapi.Message) error
type UnknownCmd ¶
type UnknownCmd struct {
// contains filtered or unexported fields
}
'unknown' command
func (*UnknownCmd) Run ¶
func (unknown *UnknownCmd) Run(bot *tgbotapi.BotAPI, chatMessage *tgbotapi.Message) error
Click to show internal directories.
Click to hide internal directories.