refactor: update bindings to match CF resource names

KV binding: claude_status, Queue binding: claude-status.
Real KV namespace ID configured with remote flag.
This commit is contained in:
2026-04-08 23:23:32 +07:00
parent b3d1f5acb4
commit 68b9604598
6 changed files with 35 additions and 24 deletions

View File

@@ -27,7 +27,7 @@ function getChatTarget(ctx) {
*/
export async function handleTelegramWebhook(c) {
const bot = new Bot(c.env.BOT_TOKEN);
const kv = c.env.CLAUDE_STATUS;
const kv = c.env.claude_status;
bot.command("start", async (ctx) => {
const { chatId, threadId } = getChatTarget(ctx);