Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
func Logger(logger ...*log.Logger) tele.MiddlewareFunc
Logger returns a middleware that logs incoming updates. If no custom logger provided, log.Default() will be used.
func Recover ¶
func Recover(onError ...func(error)) tele.MiddlewareFunc
Recover returns a middleware that recovers a panic happened in the handler.
Types ¶
type RestrictConfig ¶
type RestrictConfig struct {
Chats []int64
In tele.HandlerFunc
Out tele.HandlerFunc
}
Click to show internal directories.
Click to hide internal directories.