# Telegram Reactions Sorter

> Fetch, rank, and export Telegram channel messages by reactions, views, and engagement velocity.

Telegram Reactions Sorter is a free AI agent skill on Agensi by Radzi Zamri, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Radzi Zamri](https://www.agensi.io/creators/radzi-zamri)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/telegram-reactions-sorter
- Tags: research, social-media, python, telegram, data-analysis, social-media-analytics

## About this skill

Manually auditing Telegram engagement is slow and error-prone. This skill automates message fetching and ranking, providing clear metrics on what content actually resonates with an audience.

### What it does
- **Multi-channel fetching** scans one or more Telegram channels simultaneously via username, link, or ID.
- **Engagement ranking** sorts messages by total reactions, views, forwards, and hourly reaction velocity.
- **Detailed breakdown** extracts specific emoji counts per post to analyze audience sentiment.
- **Flexible filtering** limits scans by message count or specific date windows using `YYYY-MM-DD` formats.
- **Local data export** saves all raw analytics to CSV files in a local `data/` directory for further processing.

### How it works
1. **Initial Setup** requires installing dependencies and providing Telegram API credentials via environment variables or a `.env` file.
2. **Interactive Login** requires a one-time terminal run to handle Telegram's 2FA or login code verification.
3. **Execution** runs the script with the `--json` flag to fetch and rank messages headlessly.
4. **Analysis** parses the JSON output to identify top-performing posts and engagement patterns.

### Frameworks & tools
Built with Python 3.9+ and the Telethon library. Uses a local CSV-based cache to manage data without external databases.

### Why this beats prompting it yourself
Standard LLMs cannot access real-time Telegram data or private channel history. This skill handles the underlying protocol, rate limiting, and session management while providing structured engagement math that a base prompt cannot calculate.

### Use cases
- Identify viral content trends across competitor channels.
- Generate weekly engagement reports for community managers.
- Filter channel history for high-velocity posts during specific events.
- Export raw reaction data for custom sentiment analysis pipelines.

### Known limitations
Requires a valid Telegram account and API credentials. Cannot bypass channel privacy settings; the user account must have native access to the target channel.

## Requires

- Python
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Telegram Reactions Sorter skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill improve upon manually checking Telegram channel engagement?

This skill automates the collection and ranking of Telegram message data, solving the problem of manual auditing by calculating engagement velocity and reaction counts that are otherwise difficult to track.

### Do I need my own Telegram API credentials to use this skill?

Yes, you must provide your own Telegram API ID and Hash (obtained from my.telegram.org) and perform a one-time interactive login to handle Telegram's security protocols.

### In what format does the skill export the engagement data?

The skill exports all processed data into structured CSV files within a local directory, making it easy to import into Excel, Google Sheets, or other data visualization tools.

### Can this tool fetch data from private Telegram channels I am not a member of?

No, the skill respects Telegram's security model; the account you use for the session must already have permission to view the channel's content for the scraper to function.

### Is this skill compatible with all AI agent frameworks?

While the skill is built on Python 3.9+ and Telethon, it is designed to be triggered via command-line or integrated into AI agent workflows that support Python execution and local file management.

### What exactly is included in the purchase of this skill?

Upon purchase, you receive the complete Python source code for the agent skill, documentation for environment setup, and a pre-configured data directory structure for immediate use.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
