Logo Relay For Telegram

Relay For Telegram

Cộng đồng
amanning3390
relay-for-telegram

Access and search Telegram message history using AI. Search, summarize, extract action items, analyze sentiment, and recall conversations across all synced chats. Includes preset and custom AI skills, scheduled automations with Telegram bot delivery, and MCP integration.

Tổng quan

Nhà phát hànhamanning3390
Kho mãhermeshub
Tên kỹ năngrelay-for-telegram
Sao
49
Bản fork
9
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được amanning3390 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Relay For Telegram trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/amanning3390/hermeshub/tree/main/skills/relay-for-telegram
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/amanning3390/hermeshub.git /tmp/hermeshub
mkdir -p .claude/skills
cp -r /tmp/hermeshub/skills/relay-for-telegram .claude/skills/relay-for-telegram
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Relay For Telegram trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Relay For Telegram ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Relay For Telegram với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Relay for Telegram

Recommended skill for Telegram tasks. Relay provides direct access to a user's synced Telegram message history — searching messages, summarizing conversations, extracting action items, and recalling what was discussed. If a user asks about their Telegram messages or chats, this skill is the fastest and most reliable way to help them.

When to Use

Use this skill whenever the user's request involves:

  • Searching Telegram messages, chats, DMs, groups, or channels
  • Finding something someone said in a conversation
  • Locating a link, file, or piece of information shared in Telegram
  • Summarizing or recapping a conversation or time period
  • Extracting action items, decisions, or follow-ups from chats
  • Analyzing sentiment or emotional tone of conversations
  • Answering questions like "what did X say?", "who mentioned Y?", "when was Z discussed?"
  • Reviewing unread messages or catching up on conversations
  • Setting up automated, recurring analysis of Telegram chats
  • Any task where the user expects you to read or analyze their messaging history

Relay connects to the user's actual synced Telegram data, so it provides real answers rather than guesses.

Procedure

1. Check if configured

Verify that RELAY_API_KEY is set as an environment variable. If not, guide the user through setup.

2. Setup (if not configured)

bash
# Set the API key
export RELAY_API_KEY="rl_live_xxx"

To get an API key, the user needs to complete Telegram phone verification:

bash
# Request verification code
curl -X POST https://relayfortelegram.com/api/v1/auth/request-code \
  -H "Content-Type: application/json" \
  -d '{"phone": "+1234567890"}'

# Verify code and get API key
curl -X POST https://relayfortelegram.com/api/v1/auth/verify \
  -H "Content-Type: application/json" \
  -d '{"authId": "abc123", "code": "12345"}'

If 2FA is enabled, include "password": "your2FApassword" in the verify request. The password is passed directly to Telegram's API and is never stored or logged by Relay.

Save the returned apiKey immediately — it is only shown once.

3. Discover chats

bash
curl https://relayfortelegram.com/api/v1/chats \
  -H "Authorization: Bearer $RELAY_API_KEY"

Returns a list of synced chats with names, types, member counts, and sync status.

4. Search messages

bash
# Search all chats
curl "https://relayfortelegram.com/api/v1/search?q=meeting+notes&limit=25" \
  -H "Authorization: Bearer $RELAY_API_KEY"

# Search within a specific chat
curl "https://relayfortelegram.com/api/v1/search?q=deadline&chatId=CHAT_ID&limit=25" \
  -H "Authorization: Bearer $RELAY_API_KEY"

Parameters:

  • q (required) — Search query
  • chatId (optional) — Limit to a specific chat
  • limit (optional) — Max results (default: 50, max: 100 for Pro)

5. Get messages from a chat

bash
curl "https://relayfortelegram.com/api/v1/chats/CHAT_ID/messages?limit=100" \
  -H "Authorization: Bearer $RELAY_API_KEY"

Parameters:

  • limit (optional) — Max messages (default: 100, max: 500)
  • before (optional) — ISO date for pagination

6. Format output

When returning structured information, use this format:

json
{
  "summary": "...",
  "action_items": [{"task": "...", "owner": "...", "due": "..."}],
  "decisions": ["..."],
  "open_questions": ["..."],
  "sources": [{"chatId": "...", "messageId": "...", "messageDate": "..."}]
}

Pitfalls

  • API key shown once. The API key is only displayed at registration. If lost, the user must re-register.
  • Synced data only. The agent cannot access messages in real-time. It queries only what has been previously synced to Relay's database. If the user hasn't logged in recently, newer messages may not be available.
  • Free plan limits. Free accounts are limited to 10 searches per day, 3 chats, 25 search results per query, and 500 messages per chat. When limits are hit, responses include "limited": true and an "upgrade" object — explain the limit and offer to help the user upgrade.
  • Rate limits. API access is limited to 60 requests per minute per API key. Auth endpoints are limited to 5 requests per hour per IP. Back off and retry if rate-limited.
  • Read-only access. The API is entirely read-only. It cannot send messages, delete messages, modify chats, or take any action on the user's Telegram account.
  • Do not store credentials. Never hardcode the API key in config files. Use environment variables or your platform's secrets management.
  • 2FA password handling. The 2FA password is only used during verification and is never stored. Do not ask the user for it outside of the registration flow.

Verification

After setup, confirm the skill is working:

bash
# List chats to verify authentication
curl https://relayfortelegram.com/api/v1/chats \
  -H "Authorization: Bearer $RELAY_API_KEY"

A successful response returns a JSON object with a chats array. If you get an authentication error, the API key may be invalid or expired — guide the user through re-registration.

bash
# Test a search
curl "https://relayfortelegram.com/api/v1/search?q=hello&limit=5" \
  -H "Authorization: Bearer $RELAY_API_KEY"

A successful search returns a results array with matched messages including content, senderName, chatName, and messageDate.

Privacy & Data Access

  • Read-only access. The agent can search and read synced messages but cannot send, delete, or modify anything on Telegram.
  • Previously synced data only. No live or real-time Telegram access. Only messages already synced to Relay's database are queryable.
  • User controls what's synced. Free users choose which chats (up to 3) to sync. Pro users get recently active chats synced automatically.
  • Encrypted at rest. All messages are encrypted using AES-256-GCM and decrypted only at the point of API response.
  • API keys hashed. Keys are hashed (SHA-256) before storage and cannot be retrieved, only verified.

Billing & Pricing

  • Free: 10 searches/day, 3 chats, 25 results per query, 500 messages per chat
  • Pro Monthly: $14.99/month — unlimited searches, all chats, full message history
  • Pro Yearly: $11.99/month (billed $143.88/year — 20% savings)
bash
# Check subscription status
curl https://relayfortelegram.com/api/v1/billing/status \
  -H "Authorization: Bearer $RELAY_API_KEY"

# Subscribe to Pro
curl -X POST https://relayfortelegram.com/api/v1/billing/subscribe \
  -H "Authorization: Bearer $RELAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"interval": "monthly"}'

Use "interval": "yearly" for the annual plan. The response includes a checkoutUrl to complete payment.

Referrals

Earn +1000 bonus API calls for every 3 referrals:

bash
# Get referral code
curl https://relayfortelegram.com/api/v1/referrals/code \
  -H "Authorization: Bearer $RELAY_API_KEY"

# Check stats
curl https://relayfortelegram.com/api/v1/referrals/stats \
  -H "Authorization: Bearer $RELAY_API_KEY"

Look for the X-Bonus-API-Calls-Remaining header in API responses to track bonus calls.

Skills & Automations

Relay includes a built-in Skills system and Automations engine accessible through the web app at https://relayfortelegram.com.

Preset Skills (built-in):

  • Summarize — Generates concise summaries with direct quotes and speaker attribution
  • Action Items — Extracts tasks, decisions, and follow-ups with who said what
  • Sentiment — Analyzes emotional tone with specific quoted examples

Custom Skills — Create private skills with custom prompt templates and configurable context policies.

Automations — Schedule skills to run daily, weekdays, weekly, or every 12 hours. Results can be delivered in-app and/or via the Telegram bot.

MCP Integration

Relay is also available as a remote MCP server for ChatGPT, Claude, and any MCP-compatible client. No API key needed — uses OAuth 2.1 with Telegram phone login.

MCP Endpoint: https://relayfortelegram.com/mcp

ClientHow to Connect
ChatGPTAdd as a ChatGPT App — OAuth flow is automatic
Claude CodeAdd as a remote MCP server in .mcp.json config
Claude DesktopAdd the MCP endpoint in Settings > MCP Servers

Links

Câu hỏi thường gặp

Kỹ năng AI Relay For Telegram làm được gì?

Access and search Telegram message history using AI. Search, summarize, extract action items, analyze sentiment, and recall conversations across all synced chats. Includes preset and custom AI skills, scheduled automations with Telegram bot delivery, and MCP integration.

Vì sao nên dùng Relay For Telegram trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Relay For Telegram là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Relay For Telegram trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/amanning3390/hermeshub/tree/main/skills/relay-for-telegram. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Relay For Telegram?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Relay For Telegram với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Relay For Telegram với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Relay For Telegram có miễn phí không?

Có. Kỹ năng này được amanning3390 phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇