30 lines
549 B
Go
30 lines
549 B
Go
package handler
|
|
|
|
import (
|
|
"gitea.neur0tx.site/Neur0toxine/vegapokerbot/internal/config"
|
|
"gitea.neur0tx.site/Neur0toxine/vegapokerbot/internal/db"
|
|
"gitea.neur0tx.site/Neur0toxine/vegapokerbot/internal/locale"
|
|
"github.com/mymmrac/telego"
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
type Type uint8
|
|
|
|
const (
|
|
Noop Type = iota
|
|
Message
|
|
ChatMemberUpdated
|
|
)
|
|
|
|
type App interface {
|
|
Log() *zap.SugaredLogger
|
|
TG() *telego.Bot
|
|
Conf() *config.Config
|
|
DB() *db.Repositories
|
|
Localizer(string) locale.Localizer
|
|
}
|
|
|
|
type Handler interface {
|
|
Handle(update telego.Update) error
|
|
}
|