diff --git a/packages/create-bot/template/src/index.js.hbs b/packages/create-bot/template/src/index.js.hbs index b2ee63d2..3079fe89 100644 --- a/packages/create-bot/template/src/index.js.hbs +++ b/packages/create-bot/template/src/index.js.hbs @@ -2,14 +2,14 @@ {{#if features.dispatcher}} import { Dispatcher, filters } from '@mtcute/dispatcher' {{/if}} -import { NodeTelegramClient } from '@mtcute/node' +import { TelegramClient } from '@mtcute/node' import * as env from './env.js' {{#if features.i18n}} import { tr } from './i18n/index.js' {{/if}} -const tg = new NodeTelegramClient({ +const tg = new TelegramClient({ apiId: env.API_ID, apiHash: env.API_HASH, storage: 'bot-data/session', diff --git a/packages/create-bot/template/src/index.ts.hbs b/packages/create-bot/template/src/index.ts.hbs index 18415ac2..631653c5 100644 --- a/packages/create-bot/template/src/index.ts.hbs +++ b/packages/create-bot/template/src/index.ts.hbs @@ -2,14 +2,14 @@ {{#if features.dispatcher}} import { Dispatcher, filters } from '@mtcute/dispatcher' {{/if}} -import { NodeTelegramClient } from '@mtcute/node' +import { TelegramClient } from '@mtcute/node' import * as env from './env.js' {{#if features.i18n}} import { tr } from './i18n/index.js' {{/if}} -const tg = new NodeTelegramClient({ +const tg = new TelegramClient({ apiId: env.API_ID, apiHash: env.API_HASH, storage: 'bot-data/session',