package manager

import (
	
	
	
)

// Handler abstracts updates and session handler.
type Handler interface {
	OnSession(cfg tg.Config, s mtproto.Session) error
	OnMessage(b *bin.Buffer) error
}

// NoopHandler is a noop handler.
type NoopHandler struct{}

// OnSession implements Handler.
func ( NoopHandler) ( tg.Config,  mtproto.Session) error {
	return nil
}

// OnMessage implements Handler
func ( NoopHandler) ( *bin.Buffer) error {
	return nil
}