/install telegram-messaging
Telegram
Send messages, manage chats, handle files, and automate Telegram bot workflows via the Telegram Bot API.
This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure Telegram API access yourself.
Setup in 3 Steps
| Step 1: Install | Step 2: Pair Account | Step 3: Connect Telegram |
|---|---|---|
![]() |
![]() |
App-specific connection GIF coming soon |
| Run the install command in OpenClaw | Sign in and approve the device | Open the dashboard and connect Telegram |
How It Works
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ OpenClaw │────▶│ ClawLink │────▶│ Telegram Bot │
│ (User Chat) │ │ (OAuth) │ │ API │
└─────────────────┘ └──────────────┘ └──────────────────┘
│ │ │
│ 1. Install Plugin │ │
│ 2. Pair Device │ │
│ 3. Connect Telegram │ │
│ │ 4. Secure Token │
│ │ 5. Proxy Requests │
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ SKILL │ │ Dashboard│ │ Telegram │
│ File │ │ Auth │ │ Bot │
└──────────┘ └──────────┘ └──────────┘
Install
Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.
openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for Telegram again."
Quick Start
# Get bot info
clawlink_call_tool --tool "telegram_get_me" --params '{}'
# Get chat info
clawlink_call_tool --tool "telegram_get_chat" --params '{"chat_id": "CHAT_ID"}'
# Send a message
clawlink_call_tool --tool "telegram_send_message" --params '{"chat_id": "CHAT_ID", "text": "Hello from OpenClaw!"}'
Authentication
All Telegram tool calls are authenticated automatically by ClawLink using the bot token from the user's connected Telegram bot.
No bot token is required in chat. ClawLink stores the bot token securely and injects it into every Telegram Bot API request on the user's behalf.
Getting Connected
- Install the ClawLink plugin (see Install above).
- Pair the plugin with
clawlink_begin_pairingif it is not configured yet. - Open https://claw-link.dev/dashboard?add=telegram and connect Telegram.
- Call
clawlink_list_integrationsto verify the connection is active.
Connection Management
List Connections
clawlink_list_integrations
Response: Returns all connected integrations. Look for telegram in the list.
Verify Connection
clawlink_list_tools --integration telegram
Response: Returns the live tool catalog for Telegram.
Reconnect
If Telegram tools are missing or the connection shows an error:
- Direct the user to https://claw-link.dev/dashboard?add=telegram
- After they confirm, call
clawlink_list_integrationsto verify - Then call
clawlink_list_tools --integration telegram
Security & Permissions
- Access is scoped to the Telegram bot token connected during setup.
- All write operations (send message, delete message, kick user) require explicit user confirmation.
- Messages can only be sent to chats where the bot is a member with posting rights.
- The bot must have admin rights in groups/channels to perform moderation actions.
- Rate limits apply (~30 messages/second globally, ~1 message/second per chat).
Tool Reference
Bot Info
| Tool | Description | Mode |
|---|---|---|
telegram_get_me |
Get basic bot information (username, name, capabilities) | Read |
telegram_get_updates |
Receive incoming updates via long polling | Read |
Messages
| Tool | Description | Mode |
|---|---|---|
telegram_send_message |
Send a text message to a chat | Write |
telegram_send_photo |
Send a photo to a chat | Write |
telegram_send_document |
Send a document/file to a chat | Write |
telegram_send_location |
Send a location point on a map | Write |
telegram_send_poll |
Send a native poll to a chat | Write |
telegram_edit_message |
Edit an existing bot-sent message | Write |
telegram_delete_message |
Delete a bot-sent or service message | Write |
telegram_forward_message |
Forward a message to another chat | Write |
Chats
| Tool | Description | Mode |
|---|---|---|
telegram_get_chat |
Get chat information by ID | Read |
telegram_get_chat_history |
Get messages from a chat | Read |
telegram_get_chat_member |
Get a user's status/role in a chat | Read |
telegram_get_chat_administrators |
List admins in a chat | Read |
telegram_get_chat_members_count |
Get member count for a chat | Read |
telegram_create_chat_invite_link |
Generate a new primary invite link | Write |
telegram_revoke_chat_invite_link |
Revoke an existing invite link | Write |
Callbacks
| Tool | Description | Mode |
|---|---|---|
telegram_answer_callback_query |
Send an answer to a callback query from inline keyboard | Write |
Bot Commands
| Tool | Description | Mode |
|---|---|---|
telegram_set_my_commands |
Set the bot's command list | Write |
telegram_get_my_commands |
Get the bot's current command list | Read |
Code Examples
Send a text message
clawlink_call_tool --tool "telegram_send_message" \
--params '{
"chat_id": "-1001234567890",
"text": "Deployment complete! Version 2.1.0 is live on production."
}'
Send a photo
clawlink_call_tool --tool "telegram_send_photo" \
--params '{
"chat_id": "-1001234567890",
"photo": "https://example.com/chart.png",
"caption": "Weekly activity report"
}'
Send a poll
clawlink_call_tool --tool "telegram_send_poll" \
--params '{
"chat_id": "-1001234567890",
"question": "Which feature should we prioritize next?",
"options": ["Dark mode", "Export to PDF", "Team sharing", "API access"]
}'
Get chat information
clawlink_call_tool --tool "telegram_get_chat" \
--params '{
"chat_id": "-1001234567890"
}'
Get chat member info
clawlink_call_tool --tool "telegram_get_chat_member" \
--params '{
"chat_id": "-1001234567890",
"user_id": "123456789"
}'
Forward a message
clawlink_call_tool --tool "telegram_forward_message" \
--params '{
"chat_id": "-1009876543210",
"from_chat_id": "-1001234567890",
"message_id": 42
}'
Discovery Workflow
- Call
clawlink_list_integrationsto confirm Telegram is connected. - Call
clawlink_list_tools --integration telegramto see the live catalog. - Treat the returned list as the source of truth. Do not guess or assume what tools exist.
- If the user describes a capability but the exact tool is unclear, call
clawlink_search_toolswith a short query and integrationtelegram. - If no Telegram tools appear, direct the user to https://claw-link.dev/dashboard?add=telegram.
Execution Workflow
┌─────────────────────────────────────────────────────────────┐
│ READ OPERATIONS (Safe) │
│ get → list → fetch → describe │
│ │
│ Example: Get chat info → Get chat history → Report │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ WRITE OPERATIONS (Require Confirmation) │
│ describe → preview → confirm → call │
│ │
│ Example: Preview message → User approves → Send message │
└─────────────────────────────────────────────────────────────┘
- For unfamiliar tools, ambiguous requests, or any write action, call
clawlink_describe_toolfirst. - Use the returned guidance, schema,
whenToUse,askBefore,safeDefaults,examples, andfollowupsto shape the call. - Prefer read and get operations before writes when that reduces ambiguity.
- For writes or anything marked as requiring confirmation, call
clawlink_preview_toolfirst. - Execute with
clawlink_call_tool. Pass confirmation only after the preview matches the user's intent. - If the tool call fails, report the real error. Do not invent results or restate the failure as a missing capability unless the live catalog supports that conclusion.
Notes
- Chat IDs for groups/channels start with
-100(e.g.,-1001234567890). User DMs use the user's numeric ID. - Telegram Bot API uses Unix timestamps in UTC for message dates.
telegram_get_updatesand webhooks are mutually exclusive — if a webhook is active, polling returns a 409 Conflict.- Rate limits: ~30 messages/second globally, ~1 message/second per chat. On HTTP 429, honor the
retry_aftervalue. - The bot can only delete messages it sent itself or messages in groups where it has admin rights.
- Photos are re-encoded by Telegram; use
send_documentto preserve original quality. - Messages older than 48 hours cannot be deleted in groups.
Error Handling
| Status / Error | Meaning |
|---|---|
| Tool not found | The tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration telegram. |
| Missing connection | Telegram is not connected. Direct the user to https://claw-link.dev/dashboard?add=telegram. |
chat_not_found |
The chat ID does not exist or the bot is not a member. |
bot_not_member |
The bot is not a member of the target chat. |
message_not_found |
The message ID does not exist in the chat. |
user_not_found |
The user ID does not match any chat member. |
message_to_delete_not_found |
Cannot delete — message may be too old (48h+ in groups) or not bot-authored. |
not_enough_rights |
Bot lacks admin rights needed for this action in the group. |
retry_after |
Rate limited — honor the retry delay (seconds). |
invalid_token |
The bot token is invalid. Reconnect Telegram. |
| Write rejected | User did not confirm a write action. Always confirm before executing writes. |
Troubleshooting: Tools Not Visible
- Check that the ClawLink plugin is installed:
openclaw plugins list - If the plugin is installed but tools are missing, tell the user to send
/newas a standalone message to reload the catalog. - If a fresh chat does not help, run:
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json openclaw gateway restart - After restart, tell the user to send
/newagain and retry.
Troubleshooting: Message Send Fails
- Confirm the bot is a member of the target chat with post rights.
- Check the chat ID format — groups use
-100prefix, users use numeric ID. - Verify the bot has permission to send media if attaching photos/documents.
- If
chat_not_foundappears, the bot may have been removed from the group.
Troubleshooting: Delete Message Fails
- The bot can only delete its own messages or messages in groups where it is an admin.
- Messages older than 48 hours in groups cannot be deleted via the Bot API.
- Service messages (user join/leave) cannot be deleted.
Resources
- Telegram Bot API Documentation
- Telegram Bot Features
- BotFather — manage bot settings and commands
- ClawLink: https://claw-link.dev
- ClawLink Docs: https://docs.claw-link.dev/openclaw
- ClawLink Verification: https://claw-link.dev/verify
Powered by ClawLink — an integration hub for OpenClaw

- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install telegram-messaging - 安装完成后,直接呼叫该 Skill 的名称或使用
/telegram-messaging触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Telegram 是什么?
Send messages, manage chats, handle files, and automate Telegram bot workflows via the Telegram Bot API. Use this skill when users want to send messages, man... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 40 次。
如何安装 Telegram?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install telegram-messaging」即可一键安装,无需额外配置。
Telegram 是免费的吗?
是的,Telegram 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Telegram 支持哪些平台?
Telegram 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Telegram?
由 Jay(@hith3sh)开发并维护,当前版本 v0.2.0。

