Skip to content

Set Up Telegram

Pinchy supports Telegram as a channel for your agents. Each agent can have its own Telegram bot, and users link their Telegram account once to access all bots they have permission to use.

  • A running Pinchy instance with at least one agent
  • A Telegram account
  • Admin access to Pinchy
  1. Open BotFather in Telegram (or use the desktop/web app for easy copy-paste)
  2. Send /newbot
  3. Choose a display name for your bot
  4. Choose a username ending in bot (must be unique on Telegram)
  5. Copy the bot token BotFather gives you
  1. Go to Settings → Telegram
  2. Click Set up Telegram
  3. Paste the bot token
  4. Click Connect

Your bot token is encrypted at rest and never leaves your server.

After an admin connects a bot, each team member links their own Telegram account:

  1. Go to Settings → Telegram
  2. Scan the QR code with your phone (or click “Open in Telegram”)
  3. Send any message to the bot
  4. Copy the pairing code from the bot’s response
  5. Paste it into Pinchy and click Link

You’re now linked. Messages you send to the bot are answered by the agent.

Each agent can have its own Telegram bot. To connect a second agent:

  1. Create a new bot via BotFather (repeat Step 1)
  2. Go to Agent Settings → Telegram for the agent you want to connect
  3. Paste the new bot token and click Connect

Telegram access follows Pinchy’s permission model:

  • Agents with visibility “All”: Every linked user can message the bot
  • Restricted agents: Only users in the agent’s allowed groups (and admins) can message the bot
  • If a user messages a bot they don’t have access to, they receive a pairing prompt instead of an agent response

When group memberships or agent visibility change, Telegram access is updated automatically.

  • Unlink your account: Settings → Telegram → Unlink. You can re-link anytime.
  • Disconnect an agent’s bot: Agent Settings → Telegram → Disconnect (not available for Smithers)
  • Remove Telegram for everyone: Settings → Telegram → Remove Telegram for everyone. This disconnects all bots and unlinks all users.