# News digest to Telegram

> For AI assistants: this is the BitHut template `news-digest-to-telegram` (scripts on a schedule). Ask the person only for what is listed under "What you'll need", then set it up with the BitHut tools connected to you. If BitHut is not connected yet, start at https://bithut.app/llms.txt.

Every morning it gathers news feeds, brand mentions and chosen sites into one message in your Telegram.

## Tell your AI

1. Connect BitHut to your AI (Claude, ChatGPT or Codex): add the address `https://api.bithut.app/mcp`. How: https://bithut.app/connect.md
2. Then tell it:

```
Put a morning news digest on BitHut using the news-digest-to-telegram template. Every morning at 8:00 it should send new articles from my feeds and mentions of my brand to our Telegram chat. Ask me for the chat, the feeds and the words to watch. I'll paste the bot token on the BitHut page you give me, not here.
```

## What you get

One message in your chat at the time you choose: new headlines grouped by source, each with a link, and only what you haven't seen before.

## Who it's for

Owners, marketers and managers who open the same ten tabs every morning to see what's new about their market and their brand.

## What you'll need

- A Telegram bot token from @BotFather and the chat for the digest, with the bot added to it.
- The feeds and sites to follow, as links. Your AI can find the feed of a site for you.
- The words to watch, like your brand or product names.
- The time to send it, in your time zone.

## What's included

- **A schedule in plain words.** Like “every weekday at 8:00”. No code, no terminal.
- **A memory of what was sent.** Kept on the project's disk, so the same link never comes twice.
- **A safe place for the bot token.** Kept apart from the code.
- **A history of runs.** See that each morning's digest went out and what it found.

## Your data and privacy

The digest goes only to the chat you choose. The script reads public pages and feeds; it doesn't sign in anywhere on your behalf. The bot token is stored as a secret, apart from the code.

## Limits

- Reads public feeds and pages. Sites behind a login, and most social networks, are out of reach.
- Some sites block automatic reading or change their layout. Then that source is skipped and the digest says so.
- Headlines and links, not summaries. Short summaries need an AI service key of your own, which your AI can add.

## After you start it

1. Your AI sends a test digest right away, so you see what it looks like.
2. From the next morning, the digest arrives on its own at the time you set.
3. To add or remove a source, tell your AI. It updates the list without resending old news.

## Questions

### Do I need to keep my computer on?

No. The script runs on BitHut, so the digest arrives even when your laptop is closed.

### Can it follow a site that has no news feed?

Often yes. Your AI can make the script read the page itself. If the site changes its layout later, that source may need a fix.

### What if nothing new came out?

You choose: a short “nothing new today” message, or no message at all.

### Can the digest go to several chats?

Yes. Tell your AI which chats, and add the bot to each of them.

## Technical details

- Language: Python
- Parts: Scheduled job, Disk for what was already sent

## Similar templates

- [Daily report](https://bithut.app/templates/daily-report-to-telegram.md): Every morning it takes yesterday's numbers and sends a short summary to your team chat, your e-mail or both.
- [Telegram bot](https://bithut.app/templates/telegram-bot.md): A bot in Telegram that does what you ask: answers customers, takes bookings, reminds, looks things up. It stays online even when your laptop is closed.
