mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-24 23:14:39 +03:00
chore(release): v0.7.3
This commit is contained in:
commit
acf60cc305
@ -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 => {
|
||||
this.bot.hears(handler.config.message, this.adoptHandle(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
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nestjs-telegraf",
|
||||
"version": "0.7.2",
|
||||
"version": "0.7.3",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nestjs-telegraf",
|
||||
"version": "0.7.2",
|
||||
"version": "0.7.3",
|
||||
"description": "Telegraf module for Nest framework",
|
||||
"keywords": [
|
||||
"nest",
|
||||
|
Loading…
Reference in New Issue
Block a user