Search
Preparing search index...
The search index is not available
telegraf.js - v4.4.1
Options
All
Public
Public/Protected
All
Inherited
Menu
telegraf.js - v4.4.1
Scenes
SceneContextScene
Class SceneContextScene<C, D>
Type parameters
C
:
SessionContext
<
SceneSession
<
D
>
>
D
:
SceneSessionData
=
SceneSessionData
Hierarchy
SceneContextScene
Index
Constructors
constructor
Properties
leaving
options
Accessors
current
session
state
Methods
enter
leave
reenter
reset
Constructors
constructor
new
Scene
Context
Scene<C, D>
(
ctx
:
C
, scenes
:
Map
<
string
,
BaseScene
<
C
>
>
, options
:
Partial
<
SceneContextSceneOptions
<
D
>
>
)
:
SceneContextScene
<
C
,
D
>
Type parameters
C
:
SessionContext
<
SceneSession
<
D
>
,
C
>
D
:
SceneSessionData
=
SceneSessionData
Parameters
ctx:
C
scenes:
Map
<
string
,
BaseScene
<
C
>
>
options:
Partial
<
SceneContextSceneOptions
<
D
>
>
Returns
SceneContextScene
<
C
,
D
>
Properties
Private
leaving
leaving
:
boolean
= false
Private
Readonly
options
options
:
SceneContextSceneOptions
<
D
>
Accessors
current
get
current
(
)
:
undefined
|
BaseScene
<
C
>
Returns
undefined
|
BaseScene
<
C
>
session
get
session
(
)
:
D
Returns
D
state
get
state
(
)
:
object
set
state
(
value
:
object
)
:
void
Returns
object
Parameters
value:
object
Returns
void
Methods
enter
enter
(
sceneId
:
string
, initialState
?:
object
, silent
?:
boolean
)
:
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
Exports
Markup
Markup.button
Scenes
Telegraf
Types
Base
Scene
Scene
Context
Scene
constructor
leaving
options
current
session
state
enter
leave
reenter
reset
Stage
Wizard
Context
Wizard
Wizard
Scene
Scene
Context
Scene
Session
Scene
Session
Data
Wizard
Context
Wizard
Session
Wizard
Session
Data
Generated using
TypeDoc