intergram-js/.env.example
Eagle cd56658c7f feat: initial commit — GramJS Telegram relay for OpenClaw inject
Telegram userbot relay that monitors specified group chats and forwards
bot messages to OpenClaw's inject-http endpoint via webhook.

Features:
- GramJS (MTProto) for reading bot messages (invisible to Bot API)
- Media download + multipart form upload
- BOT_EXCLUDE filter (by user ID or @username)
- HTML entity formatting (bold, italic, code, pre, links, etc.)
- Graceful shutdown on SIGINT/SIGTERM
- .env configuration with validation
2026-02-10 20:09:08 +08:00

9 lines
286 B
Text

TG_API_ID=你的api_id
TG_API_HASH=你的api_hash
TG_SESSION_NAME=intergram-js
SOURCE_CHATS=-100123456789
WEBHOOK_URL=http://openclaw-gateway:18789/telegram/inject
INJECT_TOKEN=optional_bearer_token
ACCOUNT_ID=your_account_id
MAX_MEDIA_SIZE=52428800
BOT_EXCLUDE=133770478,@BaldEagleBot