---
title: "Telegram API for AI agents: answer your chats · Spaces"
description: "A Telegram API and MCP server for AI agents on your own Telegram account: read and answer chats with photos and files, inside safe limits. Free to start."
url: https://www.spacesos.com/telegram-api
---

# Telegram API for AI agents

Link your own Telegram account and your AI agent reads every chat and replies in the same conversation, with text, photos and files, day or night. Telegram chats arrive next to your Instagram, WhatsApp, LinkedIn and Messenger messages, so one agent answers all of them.

[Start free](https://app.spacesos.com/signup) [See all 256 tools](https://www.spacesos.com/channels/telegram)

Hi, my parcel came today but the mug inside is broken.

I am sorry, Priya. Could you send a photo of the mug and the box, so we can sort it out quickly?

(sends two photos) Here you go.

Thank you. I have passed this to Daniel on our team with your photos and order number. He will reply here today.

- **256** tools your agent can use on Telegram
- **60s** to connect your account
- **0** lines of code to write

## What your agent can do on Telegram

Read and answer Telegram chats, with photos, voice notes and files

Start a chat with someone who expects to hear from you

Star, pin, edit or delete messages, and react with an emoji

Schedule messages and run automations

## How a message gets answered

1. ### A customer writes
  On Telegram, any time of day.
2. ### Spaces passes it on
  With limits that keep the account safe.
3. ### Your AI agent replies
  In the same chat, in your words. Hard ones go to you.

## Live in three steps

1. ### Connect Telegram
  Start free and connect Telegram. Link your Telegram account with a QR code in the Telegram app, or sign in with a code sent to your phone.
2. ### Add Spaces to your agent
  One link adds Spaces to Claude, ChatGPT, Cursor or any agent that speaks MCP.
3. ### Go live
  Your agent reads and answers. Spaces paces every message inside the limits that keep the account safe.

## What teams use it for

### [Customer support](https://www.spacesos.com/use-cases/customer-support)

Your AI agent answers the questions customers ask every day, in the chat they started, and hands complaints, refunds and anything personal to a person.

### [FAQ automation](https://www.spacesos.com/use-cases/faq-automation)

Your AI agent answers the questions you get every day from your brief and saved replies, uses keyword routines for the simplest ones, and hands the rest to a person.

### [Appointment booking](https://www.spacesos.com/use-cases/appointment-booking)

Your AI agent offers times, books the slot through its own calendar tool or sends your booking link, and confirms it in the chat the person started.

[How accounts are kept safe](https://www.spacesos.com/safety)

### For developers: the Telegram tools

Add Spaces to your AI agent with one URL, `https://api.spacesos.com/mcp/telegram`, or use the REST API at `https://api.spacesos.com/v1`. [Steps for each AI client](https://www.spacesos.com/agents).

Or paste this into your agent and let it set things up with you:

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

### The core tools

| What it does | MCP tool | REST |
| --- | --- | --- |
| Your conversations, newest first, with their tags, owner, star and whether a person has taken them over. Filter to unread, unanswered, starred, archived, message requests, handed over, a tag or an owner. | `list_messaging_chats` | `GET …/chats` |
| The messages in one conversation. | `list_messaging_messages` | `GET …/chats/{chat_id}/messages` |
| A photo, video, voice note, GIF, sticker or file from a message, or a private link to it that works for ten minutes. | `get_messaging_attachment` | `GET …/chats/{chat_id}/messages/{message_id}/attachments/{attachment_id}` |
| Reply in a conversation, with text or attachments. | `reply_in_chat` | `POST …/chats/{chat_id}/messages` |
| Start a new conversation with someone who expects to hear from you. | `start_chat` | `POST …/chats` |
| Send a message at a set local time, inside working hours you choose. | `schedule_message` | `POST /v1/messaging/schedules` |

### Only on Telegram

| What it does | MCP tool | REST |
| --- | --- | --- |
| Star one message on the platform to find it again later, on WhatsApp and Instagram. | `star_message` | `PUT …/messages/{message_id}/star` |
| Remove the star from a message. | `unstar_message` | `DELETE …/messages/{message_id}/star` |

[Every Telegram tool](https://www.spacesos.com/channels/telegram) · [Telegram MCP guide](https://www.spacesos.com/channels/telegram) · [Full reference](https://www.spacesos.com/docs/reference)

## Questions people ask

[Why does Claude Duet keep logging me out of Telegram?Claude Duet on Telegram](https://www.spacesos.com/blocked/telegram/claude-duet/logs-you-out) [Why does ChatGPT keep logging me out of Telegram?ChatGPT on Telegram](https://www.spacesos.com/blocked/telegram/chatgpt/logs-you-out) [Why does Telegram keep logging out Instinct?Instinct on Telegram](https://www.spacesos.com/blocked/telegram/instinct/logged-out) [Why does Telegram ask to verify when I use Claude?Claude on Telegram](https://www.spacesos.com/blocked/telegram/claude/verify) [How do I warm up a new account safely?Free calculator](https://www.spacesos.com/tools/warm-up-planner) [How do I make a WhatsApp or Telegram chat link?Free calculator](https://www.spacesos.com/tools/chat-link-generator) [Why does Telegram say “try again later” to Grok?Grok on Telegram](https://www.spacesos.com/blocked/telegram/grok/try-again-later) [Did Grokbot get my Telegram account restricted?Grokbot on Telegram](https://www.spacesos.com/blocked/telegram/grokbot/restricted) [Why aren’t Muse messages sending on Telegram?Muse on Telegram](https://www.spacesos.com/blocked/telegram/muse/not-sending)

FAQ

## Questions, *answered.*

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

### Is this the Telegram Bot API?

No. Spaces links your own Telegram account with a QR code in the Telegram app, or a code sent to your phone, so your agent answers from you, not from a bot people have to find first.

### Can an AI agent reply to Telegram messages automatically?

Yes. Your agent reads each chat, including photos and files, and replies in the same chat. Replies go out at a human pace, inside Telegram’s safe limits.

### Can my agent start new Telegram chats?

Only a few, and only with people who expect to hear from you. Telegram restricts accounts that write to many people who have not answered, so Spaces keeps new chats low and warms a new account up over four weeks.

### Is reading Telegram messages free?

Yes. Reading is always free on Spaces; sends and replies count as actions.

### How much does the Telegram API cost?

[Free to start](https://www.spacesos.com/pricing). The Free plan has one connected account and needs no card. You pay per connected account, not per message or per contact.

Live in under 60 seconds

## Your Telegram messages are waiting right now.

Let your AI agent answer them on Telegram tonight. Free to start, 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.
