Preparing search index...
The search index is not available
Documentation - v0.19.5
Documentation
@mtcute/web
utils
UpdatesStateService
Class UpdatesStateService
Hierarchy (
View Summary
)
BaseService
UpdatesStateService
Index
Constructors
constructor
Properties
_driver
_kv
_log
_reader
Map
_writer
Map
Methods
_deserialize
Tl
_serialize
Tl
get
Channel
Pts
get
State
set
Channel
Pts
set
Date
set
Many
Channel
Pts
set
Pts
set
Qts
set
Seq
Constructors
constructor
new
UpdatesStateService
(
_kv
:
IKeyValueRepository
,
opts
:
ServiceOptions
,
)
:
UpdatesStateService
Parameters
_kv
:
IKeyValueRepository
opts
:
ServiceOptions
Returns
UpdatesStateService
Properties
Protected
_driver
_driver
:
IStorageDriver
Readonly
_kv
_kv
:
IKeyValueRepository
Protected
_log
_log
:
Logger
Protected
_reader
Map
_readerMap
:
TlReaderMap
Protected
_writer
Map
_writerMap
:
TlWriterMap
Methods
Protected
_deserialize
Tl
_deserializeTl
(
data
:
Uint8Array
)
:
null
|
TlObject
Parameters
data
:
Uint8Array
Returns
null
|
TlObject
Protected
_serialize
Tl
_serializeTl
(
obj
:
TlObject
)
:
Uint8Array
Parameters
obj
:
TlObject
Returns
Uint8Array
get
Channel
Pts
getChannelPts
(
channelId
:
number
)
:
Promise
<
null
|
number
>
Parameters
channelId
:
number
Returns
Promise
<
null
|
number
>
get
State
getState
()
:
Promise
<
null
|
[
number
,
number
,
number
,
number
]
>
Returns
Promise
<
null
|
[
number
,
number
,
number
,
number
]
>
set
Channel
Pts
setChannelPts
(
channelId
:
number
,
pts
:
number
)
:
Promise
<
void
>
Parameters
channelId
:
number
pts
:
number
Returns
Promise
<
void
>
set
Date
setDate
(
date
:
number
)
:
Promise
<
void
>
Parameters
date
:
number
Returns
Promise
<
void
>
set
Many
Channel
Pts
setManyChannelPts
(
cpts
:
Map
<
number
,
number
>
)
:
Promise
<
void
>
Parameters
cpts
:
Map
<
number
,
number
>
Returns
Promise
<
void
>
set
Pts
setPts
(
pts
:
number
)
:
Promise
<
void
>
Parameters
pts
:
number
Returns
Promise
<
void
>
set
Qts
setQts
(
qts
:
number
)
:
Promise
<
void
>
Parameters
qts
:
number
Returns
Promise
<
void
>
set
Seq
setSeq
(
seq
:
number
)
:
Promise
<
void
>
Parameters
seq
:
number
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_driver
_kv
_log
_reader
Map
_writer
Map
Methods
_deserialize
Tl
_serialize
Tl
get
Channel
Pts
get
State
set
Channel
Pts
set
Date
set
Many
Channel
Pts
set
Pts
set
Qts
set
Seq
Documentation - v0.19.5
Loading...