返回顶部
t

telegram-bot-manager

Manage and configure Telegram bots for OpenClaw. Use when setting up Telegram integrations, troubleshooting bot connectivity, configuring bot tokens, or managing Telegram channel/webhook settings. Handles bot registration, token validation, and network connectivity checks for api.telegram.org.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,604
下载量
0
收藏
概述
安装方式
版本历史

telegram-bot-manager

# Telegram Bot Manager ## Quick Start ### Setup a new Telegram bot 1. **Create bot via BotFather** - Message @BotFather on Telegram - Use `/newbot` command - Follow prompts for bot name and username - Copy the bot token (format: `1234567890:ABCdefGHIjklMNOpqrsTUVwxyz`) 2. **Configure in OpenClaw** - Add token to OpenClaw config - Enable Telegram plugin - Set up pairing mode for DM access ### Validate bot configuration ```bash # Test Telegram API connectivity curl -I https://api.telegram.org # Check bot token validity curl -s "https://api.telegram.org/bot<YOUR_TOKEN>/getMe" ``` ## Common Workflows ### Troubleshooting connectivity issues When api.telegram.org is unreachable: 1. **Check network access** ```bash curl -I -m 10 https://api.telegram.org ``` 2. **Verify DNS resolution** ```bash nslookup api.telegram.org ``` 3. **Test alternative endpoints** ```bash curl -I https://telegram.org ``` ### Configuring OpenClaw Telegram integration See [OPENCLAW_CONFIG.md](references/OPENCLAW_CONFIG.md) for detailed configuration steps. ### Bot token security - Never commit bot tokens to version control - Store tokens in environment variables or secure config files - Rotate tokens if compromised - Use different tokens for different environments (dev/prod) ## Bot Commands Reference Common Telegram bot commands for BotFather: - `/newbot` - Create a new bot - `/mybots` - Manage your bots - `/setdescription` - Set bot description - `/setabouttext` - Set about text - `/setuserpic` - Set bot profile picture - `/setcommands` - Set bot commands - `/token` - Generate new token - `/revoke` - Revoke current token - `/setprivacy` - Configure privacy mode ## Webhook vs Polling ### Webhook (Recommended for production) - Bot receives updates via HTTP POST - Requires public HTTPS endpoint - More efficient for high-volume bots ### Polling (Good for development) - Bot continuously checks for updates - Simpler setup, no public endpoint needed - Easier to debug locally See [WEBHOOK_SETUP.md](references/WEBHOOK_SETUP.md) for webhook configuration. ## Error Handling ### Common errors and solutions **"Connection timed out"** - Check firewall rules - Verify proxy configuration - Test with different network **"Invalid token"** - Verify token format (should contain colon) - Check for extra spaces or characters - Regenerate token if needed **"Bot not responding"** - Verify bot is not blocked - Check bot privacy settings - Ensure bot has proper permissions ## Testing Your Bot ### Manual testing 1. Search for your bot username on Telegram 2. Start a conversation with `/start` 3. Test basic commands ### Automated testing Use the test script in `scripts/test_bot.py` for automated validation. ## References - [Telegram Bot API Documentation](https://core.telegram.org/bots/api) - [BotFather Documentation](https://core.telegram.org/bots#6-botfather) - [OpenClaw Configuration Guide](references/OPENCLAW_CONFIG.md)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 telegram-bot-manager-1776363603 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 telegram-bot-manager-1776363603 技能

通过命令行安装

skillhub install telegram-bot-manager-1776363603

下载 Zip 包

⬇ 下载 telegram-bot-manager v1.0.0

文件大小: 20.79 KB | 发布时间: 2026-4-17 16:08

v1.0.0 最新 2026-4-17 16:08
Initial release with automated setup, testing, and webhook support

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部