Files
nexus/Technical/Workflow/n8n configure telegram trigger.md
2026-03-23 20:57:45 +08:00

28 lines
959 B
Markdown

#n8n #telegram
## Summary:
- When I configure Telegram Trigger, I got an error message: **Telegram Trigger: Bad Request: bad webhook: An HTTPS URL must be provided for webhook**
- I search ChatGPT and got solved by this solution:
- **Steps to Resolve:**
1. **Ensure HTTPS Accessibility:**
- Verify that your **n8n** instance is accessible via an HTTPS URL. If you're running **n8n** locally or without HTTPS, Telegram's webhook setup will fail.
2. **Configure Environment Variables:**
- Set the `WEBHOOK_URL` environment variable to your HTTPS URL. For example:
ini
CopyEdit
`WEBHOOK_URL=https://your-domain.com/`
- This informs **n8n** to generate webhook URLs using HTTPS.
I added environment variable in Docker Desktop:
WEBHOOK_URL https://n8n.cpolar.top
After then to check the webhook URL in Telegram Trigger:
![Image](http://zipline.ishenwei.online/u/QexDmM.png)