fix(create-bot): NodeTelegramClient -> TelegramClient
This commit is contained in:
parent
6756c78065
commit
f9d9133e88
2 changed files with 4 additions and 4 deletions
|
@ -2,14 +2,14 @@
|
||||||
{{#if features.dispatcher}}
|
{{#if features.dispatcher}}
|
||||||
import { Dispatcher, filters } from '@mtcute/dispatcher'
|
import { Dispatcher, filters } from '@mtcute/dispatcher'
|
||||||
{{/if}}
|
{{/if}}
|
||||||
import { NodeTelegramClient } from '@mtcute/node'
|
import { TelegramClient } from '@mtcute/node'
|
||||||
|
|
||||||
import * as env from './env.js'
|
import * as env from './env.js'
|
||||||
{{#if features.i18n}}
|
{{#if features.i18n}}
|
||||||
import { tr } from './i18n/index.js'
|
import { tr } from './i18n/index.js'
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
const tg = new NodeTelegramClient({
|
const tg = new TelegramClient({
|
||||||
apiId: env.API_ID,
|
apiId: env.API_ID,
|
||||||
apiHash: env.API_HASH,
|
apiHash: env.API_HASH,
|
||||||
storage: 'bot-data/session',
|
storage: 'bot-data/session',
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
{{#if features.dispatcher}}
|
{{#if features.dispatcher}}
|
||||||
import { Dispatcher, filters } from '@mtcute/dispatcher'
|
import { Dispatcher, filters } from '@mtcute/dispatcher'
|
||||||
{{/if}}
|
{{/if}}
|
||||||
import { NodeTelegramClient } from '@mtcute/node'
|
import { TelegramClient } from '@mtcute/node'
|
||||||
|
|
||||||
import * as env from './env.js'
|
import * as env from './env.js'
|
||||||
{{#if features.i18n}}
|
{{#if features.i18n}}
|
||||||
import { tr } from './i18n/index.js'
|
import { tr } from './i18n/index.js'
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
const tg = new NodeTelegramClient({
|
const tg = new TelegramClient({
|
||||||
apiId: env.API_ID,
|
apiId: env.API_ID,
|
||||||
apiHash: env.API_HASH,
|
apiHash: env.API_HASH,
|
||||||
storage: 'bot-data/session',
|
storage: 'bot-data/session',
|
||||||
|
|
Loading…
Reference in a new issue