Documentation
¶
Overview ¶
Package types provides base public types used by bot.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot interface {
// Handle register bot's handler with filter.
Handle(EventFilter, Handler)
// HandleState register bot's state handler with filter.
HandleState(EventFilter, StateHandler)
// Start bot.
Start() error
// Stop bot.
Stop() error
}
Bot instance.
type ContextProvider ¶
type EventFilter ¶
EventFilter checks that telegram update could be handlerd.
type StateHandler ¶
StateHandler for state updates.
Click to show internal directories.
Click to hide internal directories.