# Channels

## Telegram

Connect your agent to Telegram via a bot you control.

### Create a bot

1. Open Telegram → search `@botfather`
2. Send `/newbot`
3. Follow prompts and copy the API token (`1234567890:ABCdef...`)

### Configure in Guayaba

1. Go to **Communication Channels → Telegram** toggle
2. Paste bot token → **Save Settings**
3. Channel shows **✓ Configured**

### User access

Users who message your bot receive a **pairing code**. Approve or reject from the Telegram settings panel.

> Pairing management requires the agent to be Running.

| Section          | Description                           |
| ---------------- | ------------------------------------- |
| Pairing requests | Pending approvals                     |
| Approved users   | Active users. Click Revoke to remove. |

**Channel status**

| Status     | Meaning                           |
| ---------- | --------------------------------- |
| Configured | Token saved, ready to go live     |
| Active     | Agent running, accepting messages |
| Inactive   | Agent stopped                     |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.guayaba.run/channels.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
