Documentation ¶
Index ¶
- Constants
- type CommandProcessor
- type CommandService
- func (svc *CommandService) HandleUpdate(update tgbotapi.Update)
- func (svc *CommandService) Help(inputMessage *tgbotapi.Message)
- func (svc *CommandService) RenameUser(inputMessage *tgbotapi.Message)
- func (svc *CommandService) StartTrack(inputMessage *tgbotapi.Message)
- func (svc *CommandService) StopTrack(inputMessage *tgbotapi.Message)
- func (svc *CommandService) UserInfo(inputMessage *tgbotapi.Message)
Constants ¶
View Source
const (
MsgNeedMoreArgsForRename = "You need to enter new username with /rename_user command"
)
View Source
const (
StartTrackSuccessMsg = "You are now tracked!"
)
View Source
const (
StopTrackSuccessMsg = "You are now not tracked!"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandProcessor ¶
type CommandService ¶
type CommandService struct {
// contains filtered or unexported fields
}
func NewCommandService ¶
func NewCommandService( bot *tgbotapi.BotAPI, commandProcessor CommandProcessor, ) *CommandService
func (*CommandService) HandleUpdate ¶
func (svc *CommandService) HandleUpdate(update tgbotapi.Update)
func (*CommandService) Help ¶
func (svc *CommandService) Help(inputMessage *tgbotapi.Message)
func (*CommandService) RenameUser ¶
func (svc *CommandService) RenameUser(inputMessage *tgbotapi.Message)
func (*CommandService) StartTrack ¶
func (svc *CommandService) StartTrack(inputMessage *tgbotapi.Message)
func (*CommandService) StopTrack ¶
func (svc *CommandService) StopTrack(inputMessage *tgbotapi.Message)
func (*CommandService) UserInfo ¶
func (svc *CommandService) UserInfo(inputMessage *tgbotapi.Message)
Click to show internal directories.
Click to hide internal directories.