# Telegram

> Link Telegram to get Sofia Space notifications from @SofiaSpaceBot, create tasks with /task, turn files into pages with /doc, check workloads with /report, connect Telegram groups to projects, and share pages and tasks in any chat.

Source: https://docs.sofiaspace.uz/integrations/telegram/

The Sofia Space Telegram bot, **@SofiaSpaceBot**, brings your notifications into Telegram and lets you work from there: create tasks with `/task`, make a docs page from a file with `/doc`, see someone's workload with `/report`, comment on tasks by replying, and share a page or task into any chat. It works in a private chat with the bot and in Telegram groups.

**Who can do this:** any member, once your admin allows Telegram (it's allowed by default). Connecting a group to a project needs an Org Admin or the project's admin. Every plan includes the bot.

:::note
The bot was renamed from @sophie_kc_bot on 1 November 2026. If you linked the old bot, open **@SofiaSpaceBot** and press **Start** to keep getting messages.
:::

## Link your Telegram account

Linking tells the bot who you are in Sofia Space. Until you link, the bot only answers "Connect your account first".

1. In Sofia Space, go to **Settings → My account → Notifications**.
2. In the **Telegram** card, choose **Connect Telegram**.
3. Scan the QR code with your phone, or choose **Open Telegram** on this device.
4. In Telegram, press **Start**. The bot replies "✅ Connected to *your workspace* as *your name*", and the card shows **Connected as @username**.

- The code is valid for 10 minutes. If it runs out, choose **Generate new code**.
- Each workspace is linked separately. If you're in several, link each one from its own settings; one Telegram account then serves them all.
- Linking adds a row of buttons under the message field in your chat with the bot (see [The menu buttons](#the-menu-buttons)).

**To unlink:** choose **Disconnect** in the same card, or send `/stop` to the bot. With several workspaces linked, `/stop` asks **Which account should be disconnected?** and offers **All**.

## Choose what comes to Telegram

In **Settings → My account → Notifications**, the **Telegram** column turns each notification type on or off:

- **Chat** — mentions in chats, direct messages, thread replies.
- **Tasks** — assigned to me, mentions in tasks, comments on my tasks, due tomorrow, weekly summary, reminder to log time, morning brief.
- **Calendar** — event reminders, invites, changes, cancellations, replies to my invites, recurring events ending.
- **Sharing** — files and pages shared with me.
- **Billing** — invoices and payment problems (billing admins only).

Tick **Only when I'm away** to get Telegram messages only while you're not active in Sofia Space.

:::caution[Chats are off until you turn them on]
Chat messages, even direct messages and mentions, reach Telegram only for chats you've switched on: open the chat's info and turn on **Telegram notifications**. Calendar events are on by default; each event has its own switch.
:::

The bot writes to you in the language of your Sofia Space account (English, Russian or Uzbek).

## Act on notifications

- **Reply** to a task notification to add your reply as a comment on the task. The bot reacts with ✅.
- Task notifications have buttons to move the task to another status (up to three of the project's next statuses), **Assign to me**, and set the due date (**Due: Today**, **Tomorrow**, **Next week**). Only actions you're allowed to do are shown.
- Event notifications can have a **🎥 Join video call** button.
- Replies to other notifications don't become comments; the bot answers "Replies work on task notifications only."

## The menu buttons

In your private chat with the bot, these buttons stay under the message field:

| Button | Does the same as |
| --- | --- |
| **📝 New task** | `/task` |
| **📋 My tasks** | `/my` |
| **📊 Report** | `/report` |
| **⚙️ Settings** | `/settings` |
| **❓ Help** | `/help` |

If the buttons are missing, send `/help` and they come back.

## Bot commands

| Command | Where | Does |
| --- | --- | --- |
| `/task <title and details>` | private chat, any group | Create a task. See [Create a task with /task](#create-a-task-with-task). |
| `/doc [Space / Page]` | private chat, any group | Sent as a reply to a `.md`, `.docx` or `.txt` file: make it a docs page. |
| `/report [person] [PROJECT]` | private chat, any group | Someone's workload: to do, in progress, done, overdue. |
| `/my` | private chat | Your open tasks (up to 10 per workspace), each with an **Open** button. |
| `/settings` | private chat, any group | Where your `/task` goes: your default project and your choice per group. |
| `/tasks` | connected group | Open tasks created from this group or topic (up to 10). |
| `/connect` | group | Connect the group or topic to a project (admins). |
| `/disconnect` | group | Disconnect the group or topic. |
| `/stop` | private chat | Unlink your Telegram account. |
| `/help` | private chat | Help and the task template. |

In a group you can also write the command with the bot's name, such as `/task@SofiaSpaceBot`. Commands meant for other bots are ignored.

## Create a task with /task

Write the task after `/task`. The first line is the title; the lines below it are the description. Fields can be added three ways, mixed freely.

**1. Marks on the title line:**

```text
/task Fix the login button @ali_valiyev #WEB !high 25.11
Nothing happens when you tap it on iPhone.
```

This creates a task in project **WEB** titled "Fix the login button", assigned to the person whose Telegram is @ali_valiyev, priority High, due 25 November, with the second line as the description.

| Mark | Sets | Examples |
| --- | --- | --- |
| `@username` | Assignee (a second `@username` sets the reporter) | `@ali_valiyev` |
| `#KEY` | Project | `#WEB` |
| `!` / `!!` / `!word` | Priority: `!` is High, `!!` is Highest | `!`, `!!`, `!low`, `!high` |
| A date at the **end** of the title line | Due date | `25.11`, `today`, `tomorrow`, `fri` |

A date is only read at the end of the line, so "Release 1.2 notes" keeps its 1.2.

**2. Lines of their own** after the title. A line that is only one of these fills that field:

```text
/task Update the price list
Ali Valiyev
WEB
tomorrow
high
```

- an `@username`, or a member's name that matches exactly one person — the assignee (the next one is the reporter);
- `by <name>` — the reporter;
- `#KEY`, or a project key on its own such as `WEB` — the project;
- a date or a priority word.

A line that looks like a name or key but matches nobody stays in the description.

**3. Labels**, one per line:

```text
/task
Title: Prepare the Q1 report
Description: Revenue and costs by month.
Assignee: Ali Valiyev
Reporter: me
Project: Website
Due: 2026-12-15
Priority: medium
```

| Field | English labels | Russian | Uzbek |
| --- | --- | --- | --- |
| Title | `Title:` `Name:` | `Название:` `Заголовок:` | `Nomi:` `Sarlavha:` |
| Description | `Description:` `Desc:` `Details:` | `Описание:` | `Tavsif:` `Izoh:` |
| Assignee | `Assignee:` `Assign:` `Assigned:` | `Исполнитель:` `Ответственный:` | `Ijrochi:` `Mas'ul:` |
| Reporter | `Reporter:` `Author:` | `Автор:` `Репортер:` | `Muallif:` |
| Project | `Project:` | `Проект:` | `Loyiha:` |
| Due | `Due:` `Due date:` `Deadline:` | `Срок:` `Дедлайн:` | `Muddat:` |
| Priority | `Priority:` | `Приоритет:` | `Muhimlik:` `Ustuvorlik:` |

Labels win over marks and bare lines. The description runs until the next label.

**Values the bot understands:**

- **People:** a Telegram `@username` (only for people who have linked Telegram), a Sofia Space name ("Ali Valiyev" or just "Ali"), an e-mail address, or `me`. If several people match, the bot asks with a button per person (plus **Nobody**). If nobody matches, the task is still created without that person and the bot says so.
- **Project:** a key (`WEB`) or a name (`Website`). If it matches nothing, the bot asks **No project "…". Pick one:**.
- **Dates:** `25.11`, `25.11.2026`, `2026-11-25`, `today`, `tomorrow`, a weekday (`mon`…`sun` or the full name — the next one, today included), `next week` (its Monday). Russian and Uzbek words work too (`завтра`, `ertaga`, `пт`, `juma`). A day and month already past this year means next year.
- **Priority:** `lowest`, `low`, `medium` (or `normal`), `high`, `highest` (or `critical`, `urgent`, `blocker`), and the Russian and Uzbek words.
- Titles are cut at 200 characters.

### Which project the task goes to

The bot picks the first that applies:

1. `#KEY`, a key line or `Project:` in the message.
2. In a group: the project you chose for that group (see [/settings](#choose-where-your-tasks-go-settings)).
3. In a connected group: the group's project.
4. Your default project.
5. In the private chat: the last project you used, or your only project.
6. Otherwise the bot asks **Which project?** with buttons (◀ ▶ page through long lists). In a group, your answer is remembered for that group.

### Make a task from another message, a photo or a file

Send `/task` as a **reply** to a message:

- Every file in that message (photo, document, video, voice, audio) is attached. If it was part of an album the bot saw, the whole album is attached.
- If you didn't write a title, the first line of that message is the title; if you didn't write a description, its text is the description, with "— from *author*".
- A file with no text gets the title "File from Telegram: *file name*".

In the private chat this is how you turn something you forwarded into a task: forward it to the bot, then reply to it with `/task`. Telegram lets bots fetch files up to 20 MB.

### After the task is created

The bot answers "✅ **WEB-142** · *title*" with what it set (👤 assignee · 📅 due · ⚑ priority) and buttons:

- **Open** — the task in Sofia Space.
- **Undo** — archives the task. In the private chat it works for 10 minutes, for the sender only.
- **👤 Assignee**, **📅 Due**, **⚑ Priority** — set what the message left out. Assignee offers **Me**, people who have linked Telegram, and **Nobody**; Due offers **Today**, **Tomorrow**, **Friday**, **Next week** and **No due date**.
- In a group, also **Assign to me**.

Questions the bot asks (which project, which person) can be answered only by the person who sent `/task`, and expire after 15 minutes.

The task is created as you, so your project permissions apply exactly as in the app.

## Make a page from a file with /doc

**Who can do this:** linked members who can create pages in a space, with **Docs** on in the workspace.

1. Send or forward a `.md`, `.docx` or `.txt` file to the bot (or post it in a group).
2. Reply to the file with `/doc`, optionally followed by where to put it:

```text
/doc ENG / Guides
Title: Onboarding checklist
```

- `ENG / Guides` is the space (key or name), then the page to put it under, level by level. Leave it out and the bot shows your spaces as buttons, then **Create here** or **Under page…**.
- If a level isn't found, the bot says "No page … under …" and offers **Put it in** the last level it found.
- A `Title:` line names the page; otherwise the file name is used.
- When it's done the bot answers "✅ Page created: *title*" with where it went.

Things to know:

- Pages can be made from files up to 10 MB. Other kinds of file (PDF, spreadsheets, slides) can't become pages; attach them to a task with `/task` instead.
- If exactly the same file was already uploaded to your workspace by someone else, it can't become a page from Telegram. Upload it in Sofia Space instead.

## See a workload with /report

```text
/report
/report Ali Valiyev
/report @ali_valiyev WEB
```

- With nothing after it, the report is about you. Otherwise give a name, an e-mail or a linked `@username`. A project key at the end limits it to that project.
- The report shows **To do**, **In progress**, **Done in 7 days** and **Overdue** counts, the tasks longest in progress and the most overdue ones.
- **Who can see whom:** yourself; people in projects you administer; Org Admins can see anyone.
- With several workspaces linked, you get one section per workspace the person is in.
- Asked in a group, the report is sent to your private chat with the bot, and the group gets "Sent you the report privately." If you've never pressed **Start** in the bot, it asks you to do that first.

## Choose where your tasks go: /settings

`/settings` opens a panel of buttons that only you can press.

- **In the private chat:** **📁 Default project** sets the project your `/task` uses when nothing else decides; **↩ Remove default** clears it. Below are the groups where you've chosen a project, and **🔔 Notifications (website)** opens your notification settings.
- **In a group:** it says where your `/task` goes there and why (your choice, the group's project, or your default). **📁 Change project** sets your own choice for this group; **↩ Remove my choice** goes back to the group's project or your default.

A `#KEY` in a `/task` always overrides these, once.

## Use the bot in Telegram groups

You can add **@SofiaSpaceBot** to any group your team already uses.

**In any group** (no setup needed), linked members can use `/task`, `/doc` and `/report`. Tasks are created as the person who sent the command, in their own projects. The task's card stays in the chat:

- **Reply** to the card (or to the message the task was made from) to add a comment.
- **Assign to me** on the card assigns the task to whoever presses it.
- **Undo** on the card takes the task away again ("Archived: not a task.") and removes the card. It can be pressed by the person who posted the message, the person who created the task, or an Org Admin or project admin.
- As work moves on, the bot reacts on the original message: 👀 when someone starts it, 💯 when it's done.
- In Sofia Space, the task's **Linked records** show where in Telegram it came from.

People who haven't linked Telegram can't create tasks in a group that isn't connected.

### Connect a group or topic to a project

Connecting gives a group (or one forum topic) its own project: tasks from it go there by default, and people who haven't linked Telegram can create tasks too.

**Who can do this:** an Org Admin, or an admin of the project being connected, with Telegram linked.

1. Add **@SofiaSpaceBot** to the group.
2. Make the bot an **admin** of the group, so it can read messages.
3. In the topic where tasks are posted (or in the group, for the whole group), send `/connect`.
4. On the card, pick the project. You see every project if you're an Org Admin, otherwise only projects you administer; **More…** shows the rest.
5. Use **Reactions:** to turn the 👀 / 💯 progress reactions on or off.
6. Choose **Connect**. The bot confirms "✅ *group* now creates tasks in *project*".

Only the person who sent `/connect` can press the card's buttons, and the card expires after 30 minutes.

After connecting:

- `/task` in the group or topic goes to its project, unless the sender chose their own project there with `/settings` or wrote a `#KEY`.
- **People who haven't linked Telegram** can send `/task` too. Their tasks are created in the connected project by the workspace's **Telegram** [integration account](https://docs.sofiaspace.uz/integrations/integration-accounts.md). They can't send a task to any other project; a `#KEY` they write is ignored.
- `/tasks` lists the open tasks created from here.
- A topic's own connection wins over the whole group's.
- Edits to the message a task was made from follow the task while it's still in its first status; after that, the edit is added as a comment.
- Members should know that messages they turn into tasks are stored in Sofia Space. The bot says so when the group is connected.

:::note
The **/connect** card also shows a **Capture:** setting. The bot no longer creates tasks from ordinary messages, whatever is chosen: tasks come only from `/task`.
:::

### Disconnect a group

- Send `/disconnect` in the group or topic. The person who connected it, an Org Admin or the project's admin can do this.
- Or an Org Admin chooses **Disconnect** in **Settings → Integrations → Telegram groups**.

Tasks already created stay in the project. If the bot is removed from the group or is no longer an admin, the group stops creating tasks; make the bot an admin again and it resumes.

## Share a page or task in any chat

In any Telegram chat, type `@SofiaSpaceBot` and a few words. The bot lists your pages and tasks that match (with nothing typed, your recent pages). Pick one to post a short card with its title, a short excerpt and an **Open in Sofia Space** button.

- Only the title, up to 200 characters of text, and the space (or project and status) are shared.
- The people in the chat still need access in Sofia Space to open it.
- If you haven't linked Telegram, the list offers **Link your account to share pages and tasks** instead.

## For admins: Telegram settings

**Who can do this:** Org Admins. **Where:** **Settings → Integrations**.

The **Telegram** card:

- **Allow Telegram** — on by default.
- **What messages show**:
  - **Preview, can expand** (default) — a short preview, and a **Show full** button for the whole text. Expanded messages are stored by Telegram.
  - **Preview only** — a short preview. The full text stays in Sofia Space.
  - **No content** — only who did what and where, such as "Aziz mentioned you in #backend". Use this for sensitive workspaces.
- **Linked users** — how many members have linked Telegram.

When **Allow Telegram** is off, members stop getting messages, the Telegram column in their notification settings shows **Off in this workspace**, and the bot replies that Telegram is disabled for the workspace. Connected groups stop creating tasks.

The **Telegram groups** card lists every group and topic connected with `/connect`: its project, how many tasks it created, who connected it and when, and **Disabled — the bot was removed or isn't an admin** when that happens. You can change a group's project, **React with progress**, or **Disconnect** it. See [Settings → Integrations](https://docs.sofiaspace.uz/integrations/integration-accounts.md).

## Troubleshooting

**The bot says "Connect your account first".**
Your Telegram isn't linked to any workspace yet, or the link was removed. Link it again from **Settings → My account → Notifications**.

**I sent a message and nothing happened.**
The bot doesn't create anything from plain messages. Use `/task`, or reply to the message with `/task`. In the private chat it answers with a hint.

**I'm linked but get no notifications.**
Check the **Telegram** column in your notification settings, **Only when I'm away**, and, for chats, that **Telegram notifications** is on for that chat. If you blocked the bot in Telegram, unblock it and send it any message.

**`/connect` says "Make me an admin so I can read messages".**
Make the bot an admin of the group in Telegram's group settings, then send `/connect` again.

**`/connect` says I can connect only projects I administer.**
You need to be an Org Admin, or an admin of the project. Ask one of them to connect it.

**The assignee is empty and the bot says the person "hasn't linked Telegram".**
`@username` only works for people who have linked Telegram. Write their name or e-mail instead.

**My reply wasn't added as a comment.**
Replies become comments only on task notifications and on task cards (or the messages tasks were made from) in groups.

**The code expired.**
Codes last 10 minutes. Choose **Generate new code**.

## What you can't do

- The bot doesn't create tasks from ordinary messages, forwarded messages or photos on their own; use `/task`.
- You can't save a file to Drive from Telegram. `/doc` makes pages from `.md`, `.docx` and `.txt` only.
- You can't create events or send chat messages from Telegram, and you can't reply to Sofia Space chat messages from Telegram.
- You can't use `/my`, `/stop` or `/help` in a group; they work in the private chat.
- You can't send files larger than 20 MB to the bot (a Telegram limit), or make pages from files larger than 10 MB.
- You can't add the bot to a Telegram channel; it works in private chats and groups.
- A connected group feeds one project. People who haven't linked Telegram can only create tasks in that project.

## News channel

Product news and updates: **@SofiaSpaceUz** on Telegram.
