跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://botmux-mintlify-api-updates-1776816558.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

变量等效参数说明
TELEGRAM_BOT_TOKEN-tokenTelegram 机器人令牌
TELEGRAM_API_URL-tg-api自定义 Telegram API 基础 URL
DEMO_MODE-demo设置为 true 启用演示模式
BOTMUX_ALLOW_AUTO_REGISTER设置为 1 以允许 API 代理的 setWebhook 拦截自动注册未知的机器人令牌。默认禁用。
BOTMUX_STRICT_WEBHOOK设置为 1 以要求所有 webhook URL 使用 HTTPS,包括回环地址。未设置时,localhost127.0.0.1::1 允许使用 HTTP。

使用方法

export TELEGRAM_BOT_TOKEN="123456:ABC-DEF..."
export TELEGRAM_API_URL="http://localhost:8081"
./botmux
环境变量和 CLI 参数可以组合使用。CLI 参数优先级更高。