17 lines
266 B
Go
17 lines
266 B
Go
package modules
|
|
|
|
import (
|
|
"git.fromouter.space/hamcha/tg"
|
|
"github.com/cockroachdb/pebble"
|
|
)
|
|
|
|
type ModuleOptions struct {
|
|
API *tg.Telegram
|
|
Name string
|
|
KV *pebble.DB
|
|
}
|
|
|
|
type Module interface {
|
|
Initialize(options ModuleOptions) error
|
|
OnUpdate(tg.APIUpdate)
|
|
}
|