description: Chat with goose through Telegram from any device.
---
The Telegram Gateway lets you interact with goose through Telegram, enabling remote access from any device where Telegram is available.
:::warning Experimental Feature
The Gateway feature is experimental and in active development. Behavior and configuration may change in future releases.
:::
## How It Works
The Gateway connects your Telegram account to goose through a secure pairing process. Once paired, you can send messages to a Telegram bot that forwards them to goose, and receive formatted responses back in Telegram.
**Key details:**
- Uses a Telegram bot that you create and configure
- Secure pairing with a one-time code
- Supports formatted responses with code blocks and markdown
- Maintains a persistent session that auto-compacts for long conversations
- Works from any device with Telegram installed
## Prerequisites
Before setting up the Telegram Gateway, you need to create a Telegram bot:
1. Open Telegram and search for [@BotFather](https://t.me/BotFather)
2. Send `/newbot` and follow the prompts to create your bot
3. Copy the **bot token** that BotFather provides (looks like `123456789:ABCdefGHIjklMNOpqrsTUVwxyz`)
:::tip
Keep your bot token secure. Anyone with the token can control your bot.
:::
## Setup
### Desktop App
1. Open goose Desktop
2. Go to **Settings** > **Gateways**
3. In the Telegram section, enter your bot token
4. Click **Start** to activate the gateway
5. Click **Generate Pairing Code** to get a one-time pairing code
### Pair Your Telegram Account
1. Open Telegram and find your bot (search for the username you gave it)
2. Send the pairing code to the bot
3. The bot will confirm the pairing is complete
You can now chat with goose through Telegram!
### CLI Usage
You can also manage the gateway from the command line: