Hamesuderet bot setup

Connect the Telegram bot after checking credentials and testing a conversion. Existing landing pages and Cloudflare click statistics stay separate.

Use a separate Telegram test bot first. Run the checks and a conversion test before activating a production webhook. Activation requires the Windows bot to be stopped.

1. Configure Cloudflare

In Cloudflare, open Workers & Pages → hamesuderet-bot → Settings → Variables and Secrets.

Add these as Secret values using your existing credentials:

The webhook verification secret is configured automatically. Do not put credentials in URLs or paste your .env file into chat.

Configure these variables:

WRAP_URL is already configured. Keep it pointed at your existing smart-link domain.

Home Assistant receives health and heartbeat for alerts. Conversion counts, bot status and click analytics are available on the Cloudflare stats page.

2. Check and test

The key is kept only in this page's memory and sent in an Authorization header. It is never placed in a URL or saved in browser storage. Reloading the page clears it.

Checks inspect credentials, settings, Telegram webhook status and HA issues. They do not change the Telegram webhook.

The test calls AliExpress and uses your API quota. It returns the conversion result here without sending a Telegram message.

3. Activate the webhook

  1. Confirm the configuration check reports readiness and the conversion test succeeds.
  2. Stop the Windows bot and its automatic restart task or service.
  3. Confirm below, then activate. Send a Telegram link to verify the complete flow.

Activation changes where Telegram delivers this bot's updates. Deactivation removes the webhook. For rollback, deactivate it before restarting the Windows bot.

Result

No action has run.

Check the configuration to begin.