- Text messages in private chats and group chats
- Photos, voice messages, audio files, and documents (downloaded and forwarded to the agent)
- Typing indicator (refreshed every 4 seconds while the agent is thinking)
- Placeholder message (“Thinking… 💭”) edited in-place with the final response when enabled
- Bot commands:
/start,/help,/show,/list @mentiondetection in group chats- HTTP/HTTPS proxy support
Setup
Create a bot with BotFather
Open Telegram and search for Follow the prompts to choose a name and username for your bot. BotFather will reply with an HTTP API token that looks like:Copy this token.
@BotFather. Start a conversation and send:Get your Telegram user ID
To restrict the bot to yourself, you need your numeric Telegram user ID. The easiest way is to message
@userinfobot — it will reply with your ID.Alternatively, message @RawDataBot and it will show your full user object including the id field.Configure Operator
Add the following to your Replace
config.json:123456789 in allow_from with your actual Telegram user ID.Configuration reference
Set to
true to activate the Telegram channel.The Bot API token provided by
@BotFather. Format: {bot_id}:{secret}.Custom Telegram Bot API server URL. Leave empty to use the official
https://api.telegram.org. Only set this if you are running a local Bot API server for larger file downloads or higher rate limits.HTTP or HTTPS proxy URL for the Telegram API connection. Useful in regions where Telegram is blocked. Example:
http://127.0.0.1:7890. If left empty, the HTTP_PROXY / HTTPS_PROXY environment variables are used if set.Numeric Telegram user IDs (as strings) allowed to message the agent. Example:
["123456789"]. Find your ID via @userinfobot.Leave empty to allow any user. See Common configuration fields for all supported formats.A numeric chat ID (as a string) where agent reasoning traces are forwarded. Leave empty to disable. See Messaging channels for details.
Group chats
Add the bot to a group. By default, the bot responds to all messages in the group. To restrict it to@mention-only responses, configure group_trigger:
mention_only is true, the bot only responds when @YourBot appears in the message. The mention text is stripped from the content before passing it to the agent.
Proxy configuration
If Telegram is blocked in your network, set theproxy field: