fix(create-bot): NodeTelegramClient -> TelegramClient

This commit is contained in:
alina 🌸 2024-03-06 21:24:33 +03:00
parent 6756c78065
commit f9d9133e88
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
2 changed files with 4 additions and 4 deletions

View file

@ -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',

View file

@ -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',