> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openbunny.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# telegram

> Manage the Telegram channel connection and chat filter.

## Login

Authenticate with your Telegram account. You'll be prompted for an OTP code sent to your phone.

```bash theme={null}
openbunny telegram login
openbunny telegram login --reset-auth    # Clear credentials first
```

| Flag           | Description                           |
| -------------- | ------------------------------------- |
| `--reset-auth` | Clear stored credentials before login |

## List chats

Show known Telegram chats from the local database.

```bash theme={null}
openbunny telegram list
```

## Chat IDs

Control which Telegram chats are processed by numeric chat ID.

```bash theme={null}
openbunny telegram chatids                    # Show current policy
openbunny telegram chatids add 123456789      # Add a chat ID
openbunny telegram chatids remove 123456789   # Remove a chat ID
openbunny telegram chatids clear              # Clear all IDs
openbunny telegram chatids allow-all on       # Listen to all chats
```
