Documentation ¶
Overview ¶
Package hook contains telegram update hook middleware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UpdateHook ¶
type UpdateHook func(ctx context.Context, u tg.UpdatesClass) error
UpdateHook middleware is called on each tg.UpdatesClass method result.
Function is called before invoker return. Returned error will be wrapped and returned as InvokeRaw result.
func (UpdateHook) Handle ¶
func (h UpdateHook) Handle(next tg.Invoker) telegram.InvokeFunc
Handle implements telegram.Middleware.
Click to show internal directories.
Click to hide internal directories.