fix(template): new dispatcher api

This commit is contained in:
alina 🌸 2023-11-01 14:11:46 +03:00
parent 871f161694
commit cfa7e8ef5c
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
2 changed files with 2 additions and 2 deletions

View file

@ -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}}

View file

@ -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}}