💬

telegram-gateway

asterbot

Telegram gateway for asterbot

v0.1.0 Public
Telegram gateway for asterbot. Routes incoming Telegram messages to the agent and sends responses back via the asterai:telegram component. Secure by default: the gateway is disabled unless explicitly configured with an allow list or public mode. Environment variables: - TELEGRAM_ALLOWED_USER_IDS (optional): Comma-separated list of Telegram user IDs allowed to interact with the bot. - TELEGRAM_PUBLIC (optional): Set to "true" to allow messages from any user. If both TELEGRAM_ALLOWED_USER_IDS and TELEGRAM_PUBLIC are set, the allow list takes priority.

Interface

Exports
asterai:telegram/incoming-handler@0.1.0
on-message(messagemessage)
Imports
asterbot:types/agent@1.0.0
asterai:telegram/types@0.1.0
asterai:telegram/api@0.1.0
wasi:io/error@0.2.6
wasi:io/streams@0.2.6
wasi:cli/environment@0.2.6
wasi:cli/exit@0.2.6
wasi:cli/stdout@0.2.6
wasi:cli/stderr@0.2.6