2024-05-07 22:07:53 +03:00
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"gitea.neur0tx.site/Neur0toxine/vegapokerbot/internal/config"
|
|
|
|
"gitea.neur0tx.site/Neur0toxine/vegapokerbot/internal/db"
|
2024-05-07 23:45:28 +03:00
|
|
|
"gitea.neur0tx.site/Neur0toxine/vegapokerbot/internal/locale"
|
2024-05-07 22:07:53 +03:00
|
|
|
"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
|
2024-05-07 23:45:28 +03:00
|
|
|
Localizer(string) locale.Localizer
|
2024-05-07 22:07:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type Handler interface {
|
|
|
|
Handle(update telego.Update) error
|
|
|
|
}
|