fix(template): new dispatcher api
This commit is contained in:
parent
871f161694
commit
cfa7e8ef5c
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ const tg = new NodeTelegramClient({
|
|||
})
|
||||
|
||||
{{#if features.dispatcher}}
|
||||
const dp = new Dispatcher(tg)
|
||||
const dp = Dispatcher.for(tg)
|
||||
|
||||
dp.onNewMessage(filters.start, async (msg) => {
|
||||
{{#if features.i18n}}
|
||||
|
|
|
@ -16,7 +16,7 @@ const tg = new NodeTelegramClient({
|
|||
})
|
||||
|
||||
{{#if features.dispatcher}}
|
||||
const dp = new Dispatcher(tg)
|
||||
const dp = Dispatcher.for(tg)
|
||||
|
||||
dp.onNewMessage(filters.start, async (msg) => {
|
||||
{{#if features.i18n}}
|
||||
|
|
Loading…
Reference in a new issue