Documentation
¶
Overview ¶
Package watcher provides functionality to monitor Telegram for new messages.
Index ¶
- Constants
- type BotHandler
- func (h *BotHandler) DefaultHandler(ctx context.Context, b *bot.Bot, update *models.Update)
- func (h *BotHandler) HandleCallback(ctx context.Context, b *bot.Bot, update *models.Update)
- func (h *BotHandler) HandleMenu(ctx context.Context, b *bot.Bot, update *models.Update)
- func (h *BotHandler) HandleStart(ctx context.Context, b *bot.Bot, update *models.Update)
Constants ¶
View Source
const ( StartCommand = "/start" CallbackPrefix = "/period" MenuCommand = "📋 Меню" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotHandler ¶
type BotHandler struct {
// contains filtered or unexported fields
}
func NewBotHandler ¶
func NewBotHandler(db *databaser.DB, cfg *config.Config, pc *predictor.Controller) *BotHandler
func (*BotHandler) DefaultHandler ¶
func (*BotHandler) HandleCallback ¶
func (*BotHandler) HandleMenu ¶
func (*BotHandler) HandleStart ¶
Click to show internal directories.
Click to hide internal directories.