Preparing search index...
The search index is not available
telegraf.js - v4.16.3
telegraf.js
Scenes
SceneContextScene
Class SceneContextScene<C, D>
Type Parameters
C
extends
SessionContext
<
SceneSession
<
D
>
>
D
extends
SceneSessionData
=
SceneSessionData
Hierarchy
SceneContextScene
Index
Constructors
constructor
Properties
ctx
leaving
options
scenes
Accessors
current
session
state
Methods
enter
leave
reenter
reset
Constructors
constructor
new
Scene
Context
Scene
<
C
,
D
>
(
ctx
,
scenes
,
options
)
:
SceneContextScene
<
C
,
D
>
Type Parameters
C
extends
SessionContext
<
SceneSession
<
D
>
>
D
extends
SceneSessionData
=
SceneSessionData
Parameters
ctx
:
C
scenes
:
Map
<
string
,
BaseScene
<
C
>
>
options
:
Partial
<
SceneContextSceneOptions
<
D
>
>
Returns
SceneContextScene
<
C
,
D
>
Properties
Private
Readonly
ctx
ctx
:
C
Private
leaving
leaving
:
boolean
= false
Private
Readonly
options
options
:
SceneContextSceneOptions
<
D
>
Private
Readonly
scenes
scenes
:
Map
<
string
,
BaseScene
<
C
>
>
Accessors
current
get
current
(
)
:
undefined
|
BaseScene
<
C
>
Returns
undefined
|
BaseScene
<
C
>
session
get
session
(
)
:
D
Returns
D
state
get
state
(
)
:
object
Returns
object
set
state
(
value
)
:
void
Parameters
value
:
object
Returns
void
Methods
enter
enter
(
sceneId
,
initialState
?
,
silent
?
)
:
Promise
<
unknown
>
Parameters
sceneId
:
string
initialState
:
object
= {}
silent
:
boolean
= false
Returns
Promise
<
unknown
>
leave
leave
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
reenter
reenter
(
)
:
undefined
|
Promise
<
unknown
>
Returns
undefined
|
Promise
<
unknown
>
reset
reset
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
constructor
ctx
leaving
options
scenes
current
session
state
enter
leave
reenter
reset
telegraf.js -
v4.16.3
Format
Input
Markup
Scenes
Base
Scene
Scene
Context
Scene
Stage
Wizard
Context
Wizard
Wizard
Scene
Scene
Context
Scene
Session
Scene
Session
Data
Wizard
Context
Wizard
Session
Wizard
Session
Data
Telegraf
Types
Composer
Context
Memory
Session
Store
Router
Telegraf
Telegram
Telegram
Error
Middleware
Obj
Middleware
Middleware
Fn
Narrowed
Context
Session
Store
deunionize
session
Generated using
TypeDoc