From af653d15b042ed8d6af7f9a33744aeeeabc6012c Mon Sep 17 00:00:00 2001 From: dmitry Date: Thu, 10 Aug 2023 23:58:19 +0400 Subject: [PATCH] first day --- .../.idea/prettier.xml | 2 +- .yarnrc.yml | 2 ++ package.json | 2 +- packages/telegram/src/index.ts | 2 ++ yarn.lock | 18 +++++++++--------- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.idea/.idea.sakuya-deployment-bot.dir/.idea/prettier.xml b/.idea/.idea.sakuya-deployment-bot.dir/.idea/prettier.xml index 0c83ac4..727b8b5 100644 --- a/.idea/.idea.sakuya-deployment-bot.dir/.idea/prettier.xml +++ b/.idea/.idea.sakuya-deployment-bot.dir/.idea/prettier.xml @@ -1,7 +1,7 @@ - \ No newline at end of file diff --git a/.yarnrc.yml b/.yarnrc.yml index 3186f3f..edf5b78 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1 +1,3 @@ nodeLinker: node-modules + +yarnPath: .yarn/releases/yarn-3.6.1.cjs diff --git a/package.json b/package.json index 4f1a296..5fb4c01 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "lodash": "4.17.21", - "typescript": "5.1.6" + "typescript": "4.9.5" }, "workspaces": [ "./packages/**/*" diff --git a/packages/telegram/src/index.ts b/packages/telegram/src/index.ts index 7aa3cca..399f1b3 100644 --- a/packages/telegram/src/index.ts +++ b/packages/telegram/src/index.ts @@ -1,4 +1,6 @@ import { loadBotConfig } from "config-loader"; +import { Telegraf } from 'telegraf'; const config = loadBotConfig(); +const bot = new Telegraf(config.token); console.log(JSON.stringify(config)); diff --git a/yarn.lock b/yarn.lock index b4b52b2..2c94185 100644 --- a/yarn.lock +++ b/yarn.lock @@ -251,7 +251,7 @@ __metadata: lodash: 4.17.21 prettier: 3.0.1 ts-node: 10.9.1 - typescript: 5.1.6 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -340,23 +340,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:5.1.6": - version: 5.1.6 - resolution: "typescript@npm:5.1.6" +"typescript@npm:4.9.5": + version: 4.9.5 + resolution: "typescript@npm:4.9.5" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: b2f2c35096035fe1f5facd1e38922ccb8558996331405eb00a5111cc948b2e733163cc22fab5db46992aba7dd520fff637f2c1df4996ff0e134e77d3249a7350 + checksum: ee000bc26848147ad423b581bd250075662a354d84f0e06eb76d3b892328d8d4440b7487b5a83e851b12b255f55d71835b008a66cbf8f255a11e4400159237db languageName: node linkType: hard -"typescript@patch:typescript@5.1.6#~builtin": - version: 5.1.6 - resolution: "typescript@patch:typescript@npm%3A5.1.6#~builtin::version=5.1.6&hash=5da071" +"typescript@patch:typescript@4.9.5#~builtin": + version: 4.9.5 + resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=289587" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: f53bfe97f7c8b2b6d23cf572750d4e7d1e0c5fff1c36d859d0ec84556a827b8785077bc27676bf7e71fae538e517c3ecc0f37e7f593be913d884805d931bc8be + checksum: 1f8f3b6aaea19f0f67cba79057674ba580438a7db55057eb89cc06950483c5d632115c14077f6663ea76fd09fce3c190e6414bb98582ec80aa5a4eaf345d5b68 languageName: node linkType: hard