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 Assets ¶ added in v1.1.0
type Assets interface {
// LoadAsset loads the asset with the given key.
LoadAsset(ctx context.Context, key string) (io.ReadCloser, error)
}
Assets provider interface.
type Bot ¶
type Bot interface {
// Handle register bot's handler with filter.
Handle(EventFilter, Handler)
// Start bot.
Start() error
// Stop bot.
Stop() error
}
Bot instance.
type ContextProvider ¶
type EventFilter ¶
EventFilter checks that telegram update could be handlerd.
type PaymentProviders ¶ added in v1.2.0
type StateChanges ¶ added in v1.2.0
func (*StateChanges) IsEmpty ¶ added in v1.2.0
func (s *StateChanges) IsEmpty() bool
Click to show internal directories.
Click to hide internal directories.