chore(release): v0.7.3

This commit is contained in:
Aleksandr Bukhalo 2020-02-29 21:59:41 +03:00 committed by GitHub
commit acf60cc305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View File

@ -109,10 +109,16 @@ export class TelegrafService {
}
private setupOnMessage(handlers: Handler[]): void {
const onMessageHandlers = handlers.filter(({ config }) => config.message)
const onMessageHandlers = handlers.filter(
({ config }) => config.message !== undefined
)
onMessageHandlers.forEach(handler => {
if (handler.config.message) {
this.bot.hears(handler.config.message, this.adoptHandle(handler))
} else {
this.bot.on('message', this.adoptHandle(handler))
}
})
}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "nestjs-telegraf",
"version": "0.7.2",
"version": "0.7.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "nestjs-telegraf",
"version": "0.7.2",
"version": "0.7.3",
"description": "Telegraf module for Nest framework",
"keywords": [
"nest",