Install
openclaw skills install @dinghaibin/telegram-bot-proCreate and manage Telegram bots. Use when user wants to build a Telegram bot for notifications, automation, customer support, group management, or interactive commands.
openclaw skills install @dinghaibin/telegram-bot-proCreate and manage Telegram bots using the Bot API.
# Get bot token from @BotFather on Telegram
# Create bot.py:
python scripts/bot.py --token YOUR_TOKEN --handler my_handler.py
python scripts/bot.py [OPTIONS]
Options:
--token TEXT Bot API token (required)
--handler PATH Python handler file
--webhook-url URL Webhook endpoint URL
--port PORT Webhook server port (default: 8443)
--poll Use long polling instead of webhook
# my_handler.py
def handle_update(update, context):
"""Handle incoming updates."""
if update.message:
text = update.message.text
if text == "/start":
context.bot.send_message(
chat_id=update.message.chat_id,
text="Hello! I'm your bot."
)
See references/examples.md for: