telegram-automation
Automates tasks on Telegram, like sending messages and managing chats. Allows your agent to interact with Telegram programmatically.
What it does
This agent helps you automate tasks on Telegram. You can use it to send messages, photos, documents, manage chats, and even set up commands for your bot.
When to use it
- ✓Send a message to a specific group.
- ✓Share a photo or file in a chat.
- ✓Check who the administrators of a group are.
Example of what to ask your AI
“Send a photo to the 'my friends' group with the caption 'Look how cool!'”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
It connects to Telegram using a bot token and uses specific tools to perform each action, like sending messages or files. First, it checks if the connection is active, and then it executes the requested task.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add sickn33/agentic-awesome-skills --skill telegram-automationOr download just the file:
curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/telegram-automation/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
Telegram Automation via Rube MCP
Automate Telegram operations through Composio's Telegram toolkit via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Telegram connection via
RUBE_MANAGE_CONNECTIONSwith toolkittelegram - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas - Telegram Bot Token required (created via @BotFather)
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLSresponds - Call
RUBE_MANAGE_CONNECTIONSwith toolkittelegram - If connection is not ACTIVE, follow the returned auth link to configure the Telegram bot
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Send Messages
When to use: User wants to send text messages to a Telegram chat
Tool sequence:
TELEGRAM_GET_ME- Verify bot identity and connection [Prerequisite]TELEGRAM_GET_CHAT- Get chat details and verify access [Optional]TELEGRAM_SEND_MESSAGE- Send a text message [Required]
Key parameters:
chat_id: Numeric chat ID or channel username (e.g., '@channelname')text: Message text contentparse_mode: 'HTML' or 'MarkdownV2' for formattingdisable_notification: Send silently without notification soundreply_to_message_id: Message ID to reply to
Pitfalls:
- Bot must be a member of the chat/group to send messages
- MarkdownV2 requires escaping special characters:
_*[]()~>#+-=|{}.! - HTML mode supports limited tags:
<b>,<i>,<code>,<pre>,<a> - Messages have a 4096 character limit; split longer content
2. Send Photos and Documents
When to use: User wants to share images or files in a Telegram chat
Tool sequence:
TELEGRAM_SEND_PHOTO- Send an image [Optional]TELEGRAM_SEND_DOCUMENT- Send a file/document [Optional]
Key parameters:
chat_id: Target chat IDphoto: Photo URL or file_id (for SEND_PHOTO)document: Document URL or file_id (for SEND_DOCUMENT)caption: Optional caption for the media
Pitfalls:
- Photo captions have a 1024 character limit
- Document captions also have a 1024 character limit
- Files up to 50MB can be sent via bot API
- Photos are compressed by Telegram; use SEND_DOCUMENT for uncompressed images
3. Manage Chats
When to use: User wants to get chat information or manage chat settings
Tool sequence:
TELEGRAM_GET_CHAT- Get detailed chat information [Required]TELEGRAM_GET_CHAT_ADMINISTRATORS- List chat admins [Optional]TELEGRAM_GET_CHAT_MEMBERS_COUNT- Get member count [Optional]TELEGRAM_EXPORT_CHAT_INVITE_LINK- Generate invite link [Optional]
Key parameters:
chat_id: Target chat ID or username
Pitfalls:
- Bot must be an administrator to export invite links
- GET_CHAT returns different fields for private chats vs groups vs channels
- Member count may be approximate for very large groups
- Admin list does not include regular members
4. Edit and Delete Messages
When to use: User wants to modify or remove previously sent messages
Tool sequence:
TELEGRAM_EDIT_MESSAGE- Edit a sent message [Optional]TELEGRAM_DELETE_MESSAGE- Delete a message [Optional]
Key parameters:
chat_id: Chat where the message is locatedmessage_id: ID of the message to edit or deletetext: New text content (for edit)
Pitfalls:
- Bots can only edit their own messages
- Messages can only be deleted within 48 hours of sending
- In groups, bots with delete permissions can delete any message
- Editing a message removes its 'edited' timestamp history
5. Forward Messages and Get Updates
When to use: User wants to forward messages or retrieve recent updates
Tool sequence:
TELEGRAM_FORWARD_MESSAGE- Forward a message to another chat [Optional]TELEGRAM_GET_UPDATES- Get recent bot updates/messages [Optional]TELEGRAM_GET_CHAT_HISTORY- Get chat message history [Optional]
Key parameters:
from_chat_id: Source chat for forwardingchat_id: Destination chat for forwardingmessage_id: Message to forwardoffset: Update offset for GET_UPDATESlimit: Number of updates to retrieve
Pitfalls:
- Forwarded messages show the original sender attribution
- GET_UPDATES returns a limited window of recent updates
…
FAQ
Does my bot need to be in the group to send messages?
Yes, the bot must be a member of the group or chat to send messages there.
What is the maximum file size I can send?
You can send files up to 50MB. Photos might be compressed, so use document sending for images that should remain unchanged.
How do I format message text?
You can use HTML formatting (like `<b>bold</b>`) or MarkdownV2 (like `*bold*`). Remember to escape special characters if using MarkdownV2.
Details
Original description by the author
Automate Telegram tasks via Rube MCP (Composio): send messages, manage chats, share photos/documents, and handle bot commands. Always search tools first for current schemas.
Popularity
- GitHub stars
- 48k
- Ranking position
- #4335
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
Helps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
sickn33/agentic-awesome-skills
007
Lets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
sickn33/agentic-awesome-skills
10-andruia-skill-smith
Helps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
sickn33/agentic-awesome-skills
20-andruia-niche-intelligence
Lets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
sickn33/agentic-awesome-skills
Similar skills
benchmark
Helps your agent measure code speed and performance. It's useful for ensuring things are fast and finding slowness issues.
affaan-m/ECC
content-hash-cache-pattern
Lets your agent use content hashes to cache file processing results. This avoids repeated processing and auto-invalidates the cache when content changes. Useful for speeding up slow tasks.
affaan-m/ECC
parallel-execution-optimizer
Makes your agent speed up complex tasks by breaking them into smaller parts and running them in parallel. It ensures everything is verified at the end.
affaan-m/ECC