CUGA LogoCUGA AGENT
Events & ChannelsChannels

Telegram

Talk to CUGA from Telegram — a bot token from BotFather, no public URL.

Telegram is a direct channel that uses long-polling — outbound, so it needs no public URL and works under plain make up-noap. Two values:

TELEGRAM_BOT_TOKEN=…
EVENTS_TELEGRAM_BOT_USERNAME=your_bot

Create a bot with BotFather

In Telegram, message @BotFather → /newbot, follow the prompts, and copy the token it gives you → TELEGRAM_BOT_TOKEN.

Set the bot username

Set EVENTS_TELEGRAM_BOT_USERNAME to the bot's @username (without the @).

Run it

make up-noap
make channels

Message your bot; it replies. Arm automations with /automate ….

Only one poller per token

Telegram allows one getUpdates consumer per bot token. If two processes poll the same token (e.g. a laptop and a deployment) you'll see getUpdates 409 Conflict. Use a separate bot token for each environment, or stop the other one. To evict an unknown poller, revoke + reissue the token in BotFather.