---
title: "Jules Telegram integration · Spaces"
description: "Connect Telegram to an app built with Jules: read chats and reply through one API, with a prompt to paste and no developer app or review."
url: https://www.spacesos.com/build-with/jules/telegram
---

# Connect Telegram to your Jules app

Jules builds changes to your GitHub repositories, done in the cloud. With Spaces, that app reads your Telegram chats and replies through one API, without a developer app or a review by Telegram. You keep using the account you already have.

[Get a free API key](https://www.spacesos.com/signup) Copy the prompt

**Jules**

**Telegram**

## What your Jules app can do on Telegram

### Chats and groups

Read and answer your Telegram chats and the groups you are in, as you, not as a bot.

### Media

Send and receive photos, files and voice notes.

### New message events

A webhook calls your app when a message arrives.

### One inbox with the others

Telegram chats sit next to WhatsApp, Instagram and LinkedIn in the same API.

## Four steps

1. ### Get a Spaces key
  Sign up free and create an API key in Settings, under Developers.
2. ### Connect Telegram
  You link your Telegram account with a QR code in the Telegram app, or sign in with a code sent to your phone.
3. ### Add the key to Jules
  Save it in environment variables (a.env file kept out of git, and your host’s secret settings), as SPACES_API_KEY.
4. ### Paste the prompt
  Give Jules the prompt below. It builds the Telegram inbox, calling Spaces from your own server code or API routes.

## The prompt for Jules

For an app that answers your own Telegram. Paste it as it is: it stays in English so it matches the Spaces docs word for word.

```
Add Spaces to this app so it can read and answer my Telegram messages.

First read https://www.spacesos.com/llms.txt. My Spaces API key is in a secret called SPACES_API_KEY. Call https://api.spacesos.com/v1 only from your own server code or API routes, with the header "Authorization: Bearer <key>". Never send the key to the browser.

Build:
1. My connected Telegram accounts: GET /messaging/accounts?channel=telegram.
2. The chats of one account: GET /messaging/accounts/{account_id}/chats, newest first.
3. The messages of one chat: GET /messaging/accounts/{account_id}/chats/{chat_id}/messages.
4. A reply box: POST /messaging/accounts/{account_id}/chats/{chat_id}/messages with {"text": "..."} and an Idempotency-Key header, a new one for each message.

Telegram links a person’s own account, so the app answers as that person, not as a bot.

Show Spaces' error messages as they are. On 429, wait retry_after_seconds before trying again. Do not send the same message to many people.
```

Paste the prompt as the task; Jules opens a pull request you review.

## Apps people build with Telegram

### A community helper

Answers the questions that come up again and again in your groups, and flags the rest.

### A founder inbox

Sorts a busy Telegram inbox and drafts answers for the messages that need you.

### Launch support

Handles the rush of questions during a launch, across time zones.

When does the next cohort start?

12 January. The early price ends Friday, here is the link.

Perfect, signing up now.

## Limits that keep the account safe

Spaces paces every Telegram account, with a gap between sends and a warm-up for new accounts. [Every limit, per channel](https://www.spacesos.com/limits)

Spaces links a person’s own Telegram account. If you want a public bot with commands and buttons, Telegram’s Bot API is the right tool.

## Your users’ Telegram accounts

Building a product where each user connects their own Telegram? That needs a partner account, in early access. [Spaces for SaaS](https://www.spacesos.com/saas) · [Partner setup for Jules](https://www.spacesos.com/build-with/jules)

06

## Questions

**Still have a question?** Ask your AI agent: it can read our docs. Or browse every answer.[All answers](https://www.spacesos.com/answers)

### Can a Jules app send and receive Telegram messages?

Yes, through Spaces. The app calls the Spaces API from your own server code or API routes, and Spaces reads and sends on the Telegram accounts connected to it.

### How do I connect Telegram?

You link your Telegram account with a QR code in the Telegram app, or sign in with a code sent to your phone. There is no developer app or app review to pass.

### Where does the API key go?

In environment variables (a.env file kept out of git, and your host’s secret settings). Call Spaces only from your own server code or API routes, never from code that runs in the browser.

### Can my app’s users connect their own Telegram?

Yes, with a partner account: each user connects through a link that shows your app’s name and gets a key of their own. Partner accounts are in early access; see Spaces for SaaS.

### What does it cost?

The Free plan has 1 connected account and 20 actions a day, with no card, which is enough to build and test. Pay as you go is $19 a month per account with 200 actions per account a day, then $0.005 an action. Reading messages is always free.

### Will my Telegram account get restricted?

Spaces links a person’s own Telegram account. If you want a public bot with commands and buttons, Telegram’s Bot API is the right tool. New accounts warm up over four weeks, and repeated messages to many people wait for you to approve them. No tool can promise a platform will never restrict an account.

Other channels in Jules: [WhatsApp](https://www.spacesos.com/build-with/jules/whatsapp) · [Instagram](https://www.spacesos.com/build-with/jules/instagram) · [LinkedIn](https://www.spacesos.com/build-with/jules/linkedin) · [Facebook Messenger](https://www.spacesos.com/build-with/jules/messenger) · [Telegram in Spaces](https://www.spacesos.com/telegram-api)

Telegram with another builder: [Cursor](https://www.spacesos.com/build-with/cursor/telegram) · [Claude Code](https://www.spacesos.com/build-with/claude-code/telegram) · [GitHub Copilot](https://www.spacesos.com/build-with/github-copilot/telegram) · [Codex](https://www.spacesos.com/build-with/codex/telegram) · [Windsurf](https://www.spacesos.com/build-with/windsurf/telegram) · [Google Antigravity](https://www.spacesos.com/build-with/antigravity/telegram) · [Cline](https://www.spacesos.com/build-with/cline/telegram) · [Kilo Code](https://www.spacesos.com/build-with/kilo-code/telegram) · [All 49 builders](https://www.spacesos.com/build-with)

Live in under 60 seconds

## Your Jules app, answering Telegram.

Start free with one account and 20 actions a day. No card needed.

For you[Start free, live in 60 seconds](https://app.spacesos.com/signup) No card needed. Connect WhatsApp, Instagram, LinkedIn or Messenger.

For your AI agent

`Set up Spaces for me by following https://www.spacesos.com/agents`

Paste it into Grok, Muse, Claude or ChatGPT. Your agent does the rest.
