explaingit

mathigatti/telegram-ai-secretary

Analysis updated 2026-05-18

1PythonAudience · generalComplexity · 3/5Setup · moderate

TLDR

A self hosted filter that keeps Telegram muted but uses Claude to push only genuinely important messages to your phone.

Mindmap

mindmap
  root((repo))
    What it does
      Filters Telegram notifications
      Uses Claude for judgment calls
      Sends alerts through ntfy
    Tech stack
      Python
      Telethon
      Claude CLI
      ntfy
    Use cases
      Stay reachable while muted
      Catch urgent same day plans
      Notify on calls automatically
    Audience
      Privacy conscious individuals
      Digital wellbeing seekers
    Setup
      Telegram API credentials
      ntfy topic
      systemd service

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Keep Telegram fully muted while still catching urgent direct messages.

USE CASE 2

Get notified automatically when someone asks about meeting up the same day.

USE CASE 3

Let incoming calls bypass do not disturb without checking the phone constantly.

USE CASE 4

Run the filter continuously in the background as a systemd service on a server.

What is it built with?

PythonTelethonClaude CLIntfysystemd

How does it compare?

mathigatti/telegram-ai-secretary0xustaz/streamgatea-bissell/unleash-lite
Stars111
LanguagePythonPythonPython
Setup difficultymoderatehardhard
Complexity3/54/54/5
Audiencegeneraldeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Needs Telegram API credentials, an ntfy topic, and the Claude CLI already installed and authenticated.

No license information is stated in the README.

In plain English

Telegram AI Secretary is a self hosted tool that lets you keep Telegram muted without missing messages that actually matter. It watches your Telegram account, decides which incoming messages deserve your attention, and only pushes the important ones to your phone as a notification through a service called ntfy. The idea behind it is that phones have become so noisy that many people turn notifications off entirely, but then end up checking the app constantly just in case something urgent came in. This project tries to solve both problems at once by acting like a personal secretary: quiet by default, but able to let real interruptions through, such as an incoming call, someone asking to meet the same day, or a message saying someone is waiting at the door. Under the hood, the tool listens to Telegram events using a library called Telethon. Simple, obvious cases are handled by fast rules you define yourself, so the tool does not need to think twice about routine situations like ignoring group chats you are not mentioned in, or always notifying you about phone calls. When a private message does not match one of those fast rules, the tool sends it, along with recent conversation history, to Claude, which decides whether the message is worth a notification and how urgent it is. You can manage do not disturb periods, add or remove fast rules, and inspect past decisions from the command line. The app keeps its own local files for rules, preferences, conversation history, and decision logs, and these are excluded from version control since they can contain private message content, names, and Telegram account details. Setting it up requires Python 3.10 or newer, a Telegram API key from Telegram's developer site, an ntfy topic to receive alerts, and the Claude command line tool installed and logged in. The README also includes a systemd service template for running it continuously on a Linux server. The author is explicit that this is not a message forwarding tool: it does not copy your messages elsewhere, it only decides whether a given message should interrupt you, which makes it closer to a personal attention filter than a chat bridge.

Copy-paste prompts

Prompt 1
Help me write a fast rule that always notifies me about incoming Telegram calls.
Prompt 2
Explain how this project decides whether a private message deserves a notification.
Prompt 3
Walk me through setting up the Telethon session and .env file for the first run.
Prompt 4
Show me how to turn on do not disturb for two hours using notification_rules.py.

Frequently asked questions

What is telegram-ai-secretary?

A self hosted filter that keeps Telegram muted but uses Claude to push only genuinely important messages to your phone.

What language is telegram-ai-secretary written in?

Mainly Python. The stack also includes Python, Telethon, Claude CLI.

What license does telegram-ai-secretary use?

No license information is stated in the README.

How hard is telegram-ai-secretary to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is telegram-ai-secretary for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.