
Platinum Sponsor
CEOACC.COM | Wholesale Social Media Accounts from the Source
Buy Facebook accounts, Wholesale Instagram accounts, Buy Twitter accounts, Buy TikTok accounts, Buy Telegram accounts, Buy Apple IDs, Buy Google Gmail accounts


Updated: 2026-10-16
Telegram Bot is an independent Dujiao-Next extension that extends your site capabilities into Telegram scenarios. It is suitable for sites that need private-domain reach, message notifications, quick entry points, and operational broadcasts.
Note: this page describes the standalone Telegram Bot feature, not the Telegram login settings in system configuration.
288USDT / one-time license/start to open the store home with the cover image, description, welcome message, wallet balance, completed order count, and total spending/help to open the help center covering shopping, orders, wallet, and support10-50, 100+)/cancel to cancelhttps://t.me/<bot_username>?start=aff_<affiliate_code>https://t.me/<bot_username>?start=inv_<invite_code>, which fills in the invite code automatically to complete registrationmall:
base_url: "http://dujiao-next:8080" # Mall URL, must be reachable from the Bot
channel_key: "" # Channel Key from the admin channel client
channel_secret: "" # Channel Secret from the admin channel client
server:
listen: ":8444" # Internal callback server for payment, delivery, and top-up notifications from the mall
telegram:
bot_token: "" # Optional; pulled from the admin channel client when empty
webhook:
enabled: false # false = long polling, true = webhook (recommended)
url: "" # Public HTTPS webhook URL, e.g. https://bot.example.com/webhook
listen: ":8443" # Webhook listen address
secret_token: "" # Optional Telegram secret token check
redis:
host: "" # Empty = in-memory mode; user sessions are lost when the Bot restarts
license:
license_key: "" # License keymall.base_url, mall.channel_key, mall.channel_secret: required; the key and secret come from the admin channel clienthttp://dujiao-next-telegram-bot:8444; if the mall cannot reach it, payment, delivery, and top-up notifications cannot be pushed to users8443, and url is required once enabledbot.poll_interval: heartbeat and config sync interval, 30 seconds by default, must be at least 5redis: optional, recommended in production so users do not lose their session on restartWhen the Bot and the mall run in Docker on the same host, mall.base_url must not be localhost. Use the mall's container or service name, and make sure both are on the same Docker network:
dujiao-next, so use http://dujiao-next:8080-api container; update old addresses such as dujiaonext-apiThe Bot's own docker-compose.yml declares no network, so attach it to the mall's network manually:
services:
telegram-bot:
# ...keep the rest of the config unchanged
networks:
- dujiao-net
networks:
dujiao-net:
external: true
name: dujiao-next_dujiao-net # The mall's actual network name; check it with the command belowCheck which networks the mall container is on:
docker inspect dujiao-next -f '{{range $k,$v := .NetworkSettings.Networks}}{{$k}} {{end}}'If sharing a network is inconvenient, you can also set mall.base_url to the site's public URL (e.g. https://shop.example.com).
| Log | Cause and Fix |
|---|---|
initial config fetch failed ... lookup xxx ... no such host, followed by [FATAL] bot token not available | The Bot cannot reach the mall (wrong host or not on the same network); the token is not missing. Check mall.base_url and the network as in 8.3; once fixed, initial config fetch failed no longer appears in the logs |
[FATAL] bot token not available (without the error above) | No Bot Token in the admin channel client and telegram.bot_token is empty; fill in either one |
[FATAL] validate config: mall.base_url is required | mall.base_url is missing; the same applies to channel_key and channel_secret |
[FATAL] validate config: license.license_key is required | The license key is missing |
[FATAL] validate config: telegram.webhook.url is required when webhook is enabled | Webhook is enabled without a url; fill it in or switch back to long polling |
[FATAL] validate config: bot.poll_interval must be >= 5 seconds | Set bot.poll_interval to 5 or higher |
[FATAL] load config: ... | config.yml is missing or invalid; check the mount path and YAML syntax |
[FATAL] prepare license: ... | License verification failed: wrong or expired key, or the license server is unreachable; check the key or contact support |
[FATAL] license renew fatal: ... | License renewal was rejected or the lease expired while running; contact support |
[FATAL] create bot: ... | Invalid Bot Token or the Telegram API is unreachable; check the token and server network |
[FATAL] webhook mode: ... | Setting the webhook failed; make sure url is a publicly reachable HTTPS address |
[WARN] redis connect failed (fallback to memory) | Redis is unreachable and the Bot fell back to in-memory mode; check the redis settings |