feat: Add Telegram bot wrapper integration #1016
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds full Telegram bot integration allowing users to interact with Agent Zero through Telegram messages.
Features
python-telegram-botlibraryTELEGRAM_BOT_ALLOWED_USERSsecret (comma-separated user IDs)/start- Show welcome message and available commands/new- Start a fresh conversation (resets context)/id- Show your Telegram user ID (for authorization setup)Configuration
Required secrets (add in Settings > Secrets):
TELEGRAM_BOT_TOKEN- Your bot token from @BotFatherOptional secrets:
TELEGRAM_BOT_ALLOWED_USERS- Comma-separated Telegram user IDs allowed to use the bot (e.g.,123456789,987654321)How to Use
TELEGRAM_BOT_TOKEN=your_token_hereto SecretsTELEGRAM_BOT_ALLOWED_USERSfor access controlFiles Changed
python/helpers/telegram_bot.py- Core bot implementationwebui/components/settings/external/telegram_bot.html- Settings UIpython/helpers/settings.py- Addedtelegram_bot_enabledsettingrun_ui.py- Initialize bot on startupwebui/components/settings/external/external-settings.html- Navigation linkrequirements.txt- Addedpython-telegram-bot>=21.11.1andwsproto>=1.2.0docker-compose.yml- Docker deployment configurationTesting
Tested with:
🤖 Generated with Claude Code