Preparing search index...
The search index is not available
mtcute - v0.17.2
mtcute
@mtcute/core
index
PeersIndex
Class PeersIndex
Index
Constructors
constructor
Properties
chats
has
Min
users
Accessors
empty
Methods
chat
get
user
from
Constructors
constructor
new
Peers
Index
(
users
?
,
chats
?
)
:
PeersIndex
Parameters
users
:
Map
<
number
,
TypeUser
>
= ...
chats
:
Map
<
number
,
TypeChat
>
= ...
Returns
PeersIndex
Properties
Readonly
chats
chats
:
Map
<
number
,
TypeChat
>
= ...
has
Min
has
Min
:
boolean
= false
Readonly
users
users
:
Map
<
number
,
TypeUser
>
= ...
Accessors
empty
get
empty
(
)
:
boolean
Returns
boolean
Methods
chat
chat
(
id
)
:
TypeChat
Parameters
id
:
number
Returns
TypeChat
get
get
(
peer
)
:
TypeUser
|
TypeChat
Parameters
peer
:
TypePeer
Returns
TypeUser
|
TypeChat
user
user
(
id
)
:
TypeUser
Parameters
id
:
number
Returns
TypeUser
Static
from
from
(
obj
)
:
PeersIndex
Parameters
obj
:
{
chats
?:
TypeChat
[]
;
users
?:
TypeUser
[]
;
}
Optional
chats
?:
TypeChat
[]
Optional
users
?:
TypeUser
[]
Returns
PeersIndex
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
chats
has
Min
users
Accessors
empty
Methods
chat
get
user
from
mtcute - v0.17.2
Loading...