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
This commit is contained in:
commit
cd56658c7f
9 changed files with 1345 additions and 0 deletions
6
main.js
Normal file
6
main.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { run } from "./src/relay.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue