ultra-telegram-framework
Preparing search index...
session
sessionManager
Function sessionManager
sessionManager
<
S
extends
SessionData
>
(
options
:
SessionOptions
<
S
>
,
)
:
(
ctx
:
Context
&
{
session
:
S
}
,
next
:
()
=>
Promise
<
void
>
,
)
=>
Promise
<
void
>
Middleware for adding sessions to the context.
Type Parameters
S
extends
SessionData
Parameters
options
:
SessionOptions
<
S
>
Returns
(
ctx
:
Context
&
{
session
:
S
}
,
next
:
()
=>
Promise
<
void
>
)
=>
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
ultra-telegram-framework
Loading...
Middleware for adding sessions to the context.