Skip to content

Commit 5b419ea

Browse files
authored
Merge pull request #369 from oasisprotocol/mz/tgbotEnvName
Use TELEGRAM_API_TOKEN env name
2 parents 188284d + f6d7245 commit 5b419ea

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

.changelog/369.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use TELEGRAM_API_TOKEN env name

src/pages/CreateApp/TgbotAgentForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const TgbotAgentForm: FC<TgbotAgentFormProps> = ({
2424
defaultValues: {
2525
secrets: {
2626
OLLAMA_MODEL: '',
27-
TOKEN: '',
27+
TELEGRAM_API_TOKEN: '',
2828
OLLAMA_SYSTEM_PROMPT: '',
2929
},
3030
...inputs,
@@ -51,7 +51,7 @@ export const TgbotAgentForm: FC<TgbotAgentFormProps> = ({
5151

5252
<InputFormField
5353
control={form.control}
54-
name="secrets.TOKEN"
54+
name="secrets.TELEGRAM_API_TOKEN"
5555
label="Telegram API token"
5656
placeholder="Paste or type API token here"
5757
type="password"

src/pages/CreateApp/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export const tgbotFormSchema = z.object({
138138
OLLAMA_MODEL: z.string().min(1, {
139139
message: 'Model is required.',
140140
}),
141-
TOKEN: z
141+
TELEGRAM_API_TOKEN: z
142142
.string()
143143
.min(1, {
144144
message: 'Token is required.',

templates/tgbot/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ services:
1212
image: "ghcr.io/oasisprotocol/demo-rofl-tgbot:ollama"
1313
platform: linux/amd64
1414
environment:
15-
- TOKEN=${TOKEN}
15+
- TELEGRAM_API_TOKEN=${TELEGRAM_API_TOKEN}
1616
- OLLAMA_MODEL=${OLLAMA_MODEL}
1717
- OLLAMA_SYSTEM_PROMPT=${OLLAMA_SYSTEM_PROMPT}

templates/tgbot/rofl-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ secrets:
3535
options:
3636
- "gemma3:1b": "Gemma 3 1B"
3737
- "deepseek-r1:1.5b": "Deepseek 1.5B"
38-
- name: TOKEN
38+
- name: TELEGRAM_API_TOKEN
3939
title: "Telegram API token"
4040
description: "Request your Telegram bot API token by sending `/newbot` command to the @BotFather account"
4141
type: text

0 commit comments

Comments
 (0)