feat(dispatcher): filters.start filter for /start
This commit is contained in:
parent
fbb5d7005f
commit
035435900b
1 changed files with 9 additions and 0 deletions
|
@ -888,6 +888,15 @@ export namespace filters {
|
||||||
return check
|
return check
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Shorthand filter that matches /start commands sent to bot's
|
||||||
|
* private messages.
|
||||||
|
*/
|
||||||
|
export const start = and(
|
||||||
|
chat('private'),
|
||||||
|
command('start')
|
||||||
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a filter for {@link ChatMemberUpdate} by update type
|
* Create a filter for {@link ChatMemberUpdate} by update type
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue