fix(02-03): set-webhook auto-appends /telegram/webhook to a pathless URL
- Deploy walkthrough revealed a bare workers.dev origin setWebhook answers ok but drops updates at / (404) - Normalize WEBHOOK_URL: no path -> append /telegram/webhook; invalid URL -> fail fast, never echo values (T-02-04) - .dev.vars.example documents the path expectation
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# Copy to .dev.vars and fill for local wrangler dev (D-15). NEVER commit .dev.vars.
|
||||
BOT_TOKEN=
|
||||
WEBHOOK_SECRET=
|
||||
# Full origin + path; set-webhook.mjs auto-appends /telegram/webhook if only an origin is set.
|
||||
WEBHOOK_URL=
|
||||
|
||||
Reference in New Issue
Block a user