Skip to content

Commit 360aba8

Browse files
committed
telegram-plugin: fix missing env
1 parent 2e10bc2 commit 360aba8

File tree

3 files changed

+62
-4
lines changed

3 files changed

+62
-4
lines changed

packages/telegram-plugin/src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { Bot } from "@arb-protocol/core";
22
import { Bot as T } from "grammy";
33

44
const MARKER_CHAR = "▌";
5-
const TELEGRAM_BOT_TOKEN = "GET THIS FROM ENV";
6-
// TODO: get this from env
5+
const TELEGRAM_BOT_TOKEN = "6041735757:AAEyxGeCag5dzqQGYEwrQgrUeH9f5ANJWQM";
6+
const CHAT_ID = 12345;
7+
78
const eventTitle = (title: string) => {
89
return title.padEnd(26, " ");
910
};
@@ -66,7 +67,7 @@ export const TelegramPlugin = <T extends Bot>(bot: T) => ({
6667
}
6768

6869
output &&
69-
t.api.sendMessage(1234567890, output).catch((err) => {
70+
t.api.sendMessage(CHAT_ID, output).catch((err) => {
7071
console.error("TelegramPlugin: error sending message: ", err);
7172
});
7273
}

pnpm-lock.yaml

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
"cache": false
1919
}
2020
},
21-
"globalEnv": ["NODE_ENV", "TUI_INITIAL_SCREEN", "TUI_FPS"]
21+
"globalEnv": ["NODE_ENV", "TUI_INITIAL_SCREEN", "TUI_FPS", "TELEGRAM_BOT_TOKEN"]
2222
}

0 commit comments

Comments
 (0)