Preparing search index...
The search index is not available
Documentation - v0.19.5
Documentation
@mtcute/dispatcher
filters
chat
Function chat
chat
<
T
extends
"user"
|
ChatType
,
Obj
extends
{
chat
:
Peer
}
>
(
type
:
T
,
)
:
filters
.
UpdateFilter
<
Obj
,
{
chat
:
T
extends
"user"
?
User
:
Modify
<
Chat
,
{
chatType
:
T
}
>
}
&
(
Obj
extends
Message
?
T
extends
"user"
|
"group"
?
{
sender
:
User
}
:
{
sender
:
Chat
}
:
EmptyObject
)
,
>
Filter updates by type of the chat where they happened
Type Parameters
T
extends
"user"
|
ChatType
Obj
extends
{
chat
:
Peer
}
Parameters
type
:
T
Returns
filters
.
UpdateFilter
<
Obj
,
{
chat
:
T
extends
"user"
?
User
:
Modify
<
Chat
,
{
chatType
:
T
}
>
}
&
(
Obj
extends
Message
?
T
extends
"user"
|
"group"
?
{
sender
:
User
}
:
{
sender
:
Chat
}
:
EmptyObject
)
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Documentation - v0.19.5
Loading...
Filter updates by type of the chat where they happened