Documentation ¶
Index ¶
- type Handler
- func (Handler) BotEnterGroup(*tgbotapi.BotAPI, *tgbotapi.Chat) error
- func (h Handler) GetRandomIdiom() (*model.Idiom, error)
- func (h Handler) NewMemberInGroup(bot *tgbotapi.BotAPI, chat *tgbotapi.Chat, user tgbotapi.User) error
- func (h Handler) OnCallbackQuery(bot *tgbotapi.BotAPI, query tgbotapi.CallbackQuery) error
- func (h Handler) OnGroupMsg(bot *tgbotapi.BotAPI, msg tgbotapi.Message) error
- func (h Handler) OnMemberLeftGroup(bot *tgbotapi.BotAPI, chat *tgbotapi.Chat, user tgbotapi.User) error
- func (h Handler) OnPrivateCommand(bot *tgbotapi.BotAPI, msg tgbotapi.Message, command string, args ...string) error
- type IBiz
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { *pg.DB *gocaptcha.ImageConfig *gocaptcha.ImageFilterManager IdiomCount int }
func NewHandler ¶
func NewHandler(db *pg.DB, cfg env.Specification) Handler
func (Handler) BotEnterGroup ¶
func (Handler) NewMemberInGroup ¶
func (Handler) OnCallbackQuery ¶
func (Handler) OnGroupMsg ¶
func (Handler) OnMemberLeftGroup ¶
type IBiz ¶
type IBiz interface { BotEnterGroup(*tgbotapi.BotAPI, *tgbotapi.Chat) error NewMemberInGroup(*tgbotapi.BotAPI, *tgbotapi.Chat, tgbotapi.User) error OnGroupMsg(*tgbotapi.BotAPI, tgbotapi.Message) error OnCallbackQuery(*tgbotapi.BotAPI, tgbotapi.CallbackQuery) error OnMemberLeftGroup(*tgbotapi.BotAPI, *tgbotapi.Chat, tgbotapi.User) error OnPrivateCommand(bot *tgbotapi.BotAPI, msg tgbotapi.Message, command string, args ...string) error }
Click to show internal directories.
Click to hide internal directories.