Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reducer ¶
type Reducer struct { Bot *tgbotapi.BotAPI Persistence persistence.Persistence }
Reducer reduce and handle updates accordingly
func NewReducer ¶
func NewReducer(bot *tgbotapi.BotAPI, db persistence.Persistence) *Reducer
NewReducer get a new Reducer
func (*Reducer) HandleUpdates ¶
func (r *Reducer) HandleUpdates(updates tgbotapi.UpdatesChannel)
HandleUpdates reduce updates to correct handler function
Click to show internal directories.
Click to hide internal directories.