@this-npm-test-org/channel-telegram
v0.1.5
Published
Telegram messaging channel for Amodal agents. Receive and reply to messages via Telegram Bot API.
Downloads
679
Readme
@amodalai/channel-telegram
Telegram messaging channel plugin for Amodal agents. Lets users interact with their agent via Telegram DM instead of a browser.
Install
pnpm add @amodalai/channel-telegramAdd to amodal.json:
{
"packages": ["@amodalai/channel-telegram"],
"channels": {
"telegram": {
"botToken": "env:TELEGRAM_BOT_TOKEN",
"webhookSecret": "env:TELEGRAM_WEBHOOK_SECRET",
"allowedUsers": ["env:TELEGRAM_OWNER_ID"]
}
}
}Setup
- Create a bot via @BotFather and get the bot token
- Set
TELEGRAM_BOT_TOKENin your.env - Set
TELEGRAM_WEBHOOK_SECRETto a random string (optional but recommended) - Set
TELEGRAM_OWNER_IDto your Telegram user ID (find via @userinfobot) - Register the webhook:
amodal channels setup telegram --url https://your-domain.com - Start the server:
amodal dev
Config
| Field | Required | Description |
|-------|----------|-------------|
| botToken | Yes | Bot API token from @BotFather |
| webhookSecret | No | Secret for webhook verification |
| allowedUsers | No | Array of Telegram user IDs. If omitted, all senders accepted. |
