2024-05-07 22:07:53 +03:00
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/mymmrac/telego"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Type uint8
|
|
|
|
|
|
|
|
const (
|
|
|
|
Noop Type = iota
|
|
|
|
Message
|
|
|
|
ChatMemberUpdated
|
2024-05-09 20:48:59 +03:00
|
|
|
CallbackQuery
|
2024-05-07 22:07:53 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
type Handler interface {
|
|
|
|
Handle(update telego.Update) error
|
|
|
|
}
|