# Telegram

## What it is

**Telegram** is the main channel for Botconsole bots. You connect a bot created with [BotFather](https://t.me/BotFather), and the same constructor scenarios that you build in Botconsole run in Telegram chats with your users.

Telegram supports almost every block type available in the constructor — text, media, polls, payments, rich keyboards, and advanced message options.

## Requirements

- A **constructor bot** in Botconsole
- A Telegram bot token from **@BotFather**
- The bot added to chats or groups if you use those modes

## How to connect

1. Open **Bots** → your bot → **Settings**.
2. Click **Add connection** → **Telegram** (or open the existing Telegram connection).
3. Open the token / connection tab.
4. Paste the token from BotFather.
5. Save. The connection should become active.
6. Write `/start` to your bot in Telegram — the constructor scenario should reply.

> One Botconsole bot can also have WhatsApp, Instagram, Widget, Email, and SMS connections at the same time. Each channel is a separate connection under the same bot.

## Message types and limits

### Available message types

| Type | Supported |
|------|-----------|
| Text | Yes |
| Image | Yes |
| Video | Yes |
| Video note (circle) | Yes |
| GIF / animation | Yes |
| Audio | Yes |
| Voice message | Yes |
| Document | Yes |
| Sticker | Yes |
| Location | Yes |
| Contact | Yes |
| Media album / group | Yes |
| Poll | Yes |
| Invoice / payment | Yes |
| Paid media | Yes |

Telegram is the **full-parity** channel for the constructor.

### Buttons

- **Inline buttons** — yes, attached under the message  
  - Up to **8** buttons per row  
  - Many rows allowed  
  - Button text up to **64** characters  
  - URL buttons supported  
- **Reply keyboard** (buttons under the input field) — yes, can stay on screen  
- Button text for reply keyboard up to **64** characters  

### Extra message options

Supported in constructor scenarios:

| Option | Available |
|--------|-----------|
| Message effects | Yes |
| Reply to a message | Yes |
| Link preview on/off | Yes |
| Send / forward to another chat | Yes |
| Forum topic (thread) | Yes |
| AI streaming replies | Yes |
| Edit / delete bot messages | Yes |
| “Typing…” status | Yes |

### Limits (practical)

| Limit | Value |
|-------|--------|
| Text length | up to **4 096** characters (longer text is split automatically) |
| Media caption | up to **1 024** characters |
| Image | up to ~**10 MB** |
| Video / audio | up to ~**50 MB** |
| Documents | large files supported (Telegram limits apply) |
| Stickers | small files (about **1 MB**) |

## Formatting

Telegram supports rich text from the constructor:

- **Bold**, *italic*, underline, ~~strikethrough~~  
- Inline code and code blocks  
- Blockquotes  
- Markdown links `[label](url)`  
- Spoilers  

## Notes and limitations

> For multi-channel bots, design scenarios that also work on stricter channels (WhatsApp, SMS), or keep advanced Telegram-only blocks only for Telegram users.

> Groups and channels need the bot to be a member (and often admin) with the right permissions for the actions you use (posts, invites, etc.).
