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