feat(dispatcher): filters.start filter for /start

This commit is contained in:
teidesu 2021-06-19 20:59:35 +03:00
parent fbb5d7005f
commit 035435900b

View file

@ -888,6 +888,15 @@ export namespace filters {
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
*