# Daily report to Telegram

> For AI assistants: this is the BitHut template `daily-report-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 takes yesterday's numbers and sends a short summary to your Telegram chat.

## 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 BitHut is invite-only for now. Signing in works for the Google account we invited.
2. Then tell it:

```
Put a daily report on BitHut using the daily-report-to-telegram template. Every morning at 9:00 it should send yesterday's numbers from my Google Sheet to our Telegram chat. Ask me for the bot token, the chat and the sheet.
```

## What you get

One message in your chat at the time you choose: the date, the key numbers and how they changed since the day before.

## Who it's for

Managers and owners who check the same numbers every morning and want them to arrive on their own.

## What you'll need

- A Telegram bot token. You get it from @BotFather in a couple of minutes.
- The Telegram chat for the report, with the bot added to it.
- A link to the Google Sheet and which numbers to include.
- The time to send it, in your time zone.

## What's included

- **A schedule in plain words.** Like “every day at 9:00”. No cron, no terminal.
- **A safe place for the bot token.** Kept apart from the code.
- **A history of runs.** See that each morning's report went out.
- **Errors in plain words.** With a ready task to hand to your AI.

## Your data and privacy

The report goes only to the chat you choose. The bot token and the sheet link are stored as secrets, apart from the code.

## Limits

- Sends to one chat. Ask your AI to add more chats if you need them.
- Reads one Google Sheet. Other sources, like a CRM, need changes your AI can make.
- If the sheet is empty or can't be reached, the report says so instead of sending zeros.

## After you start it

1. Your AI sends a test report right away, so you see what it looks like.
2. From the next morning, the report arrives on its own at the time you set.
3. Each run appears in the project's history on BitHut.

## Questions

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

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

### Can I change the time later?

Yes. Tell your AI the new time, and it updates the schedule.

### What if the numbers look wrong?

Open the run in the project's history, copy the task for your AI and give it to it. It sees what the script read and can fix it.

## Technical details

- Language: Python
- Parts: Scheduled job, Disk for the run history

## Similar templates

- [Telegram bot](https://bithut.app/templates/telegram-bot.md): A bot in Telegram that stays online and answers your team's commands, even when your laptop is closed.
- [Dashboard from Google Sheets](https://bithut.app/templates/sheets-dashboard.md): A web page with charts from your Google Sheet, behind a password, for your team.
