fix: remove ANTHROPIC_API_KEY requirement, use claude.ai subscription auth
This commit is contained in:
@@ -3,11 +3,9 @@ import { createBot } from "./bot.js";
|
|||||||
|
|
||||||
const token = process.env.TELEGRAM_BOT_TOKEN;
|
const token = process.env.TELEGRAM_BOT_TOKEN;
|
||||||
const ownerId = process.env.TELEGRAM_OWNER_ID;
|
const ownerId = process.env.TELEGRAM_OWNER_ID;
|
||||||
const apiKey = process.env.ANTHROPIC_API_KEY;
|
|
||||||
|
|
||||||
if (!token) throw new Error("TELEGRAM_BOT_TOKEN is required");
|
if (!token) throw new Error("TELEGRAM_BOT_TOKEN is required");
|
||||||
if (!ownerId) throw new Error("TELEGRAM_OWNER_ID is required");
|
if (!ownerId) throw new Error("TELEGRAM_OWNER_ID is required");
|
||||||
if (!apiKey) throw new Error("ANTHROPIC_API_KEY is required");
|
|
||||||
|
|
||||||
const bot = createBot(token, Number(ownerId));
|
const bot = createBot(token, Number(ownerId));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user