Telegram Setup

Telegram is the most feature-rich channel integration, supporting real-time response streaming, rich media, and both private and group chats.

Creating a Telegram Bot

  1. Open Telegram and search for @BotFather
  2. Send /newbot
  3. Choose a display name for your bot (e.g., “My Support Agent”)
  4. Choose a username ending in bot (e.g., my_support_agent_bot)
  5. BotFather will respond with a bot token that looks like 123456789:ABCDefGHIjklMNOpqrSTUvwxYZ
  6. Copy this token

Connecting to Lenno

  1. Go to your agent’s Channels tab
  2. Click Add Channel
  3. Select Telegram
  4. Paste the bot token from BotFather
  5. Click Save

Lenno automatically registers a webhook so the bot can receive messages. Bot credentials authenticate Telegram deliveries, but do not identify the agent owner; owner commands remain disabled until you complete one of the proof flows below.

Owner Proof: /link Versus /pair

Telegram has two deliberately different one-time-code flows:

  • /link <code> links your Lenno user account. Generate it in your Lenno Telegram settings and send it to an agent bot in a private chat. It records Telegram’s stable numeric user ID on your own Lenno account. If you are that agent’s current effective owner, this independently global proof may verify the agent’s active Telegram channels. A non-owner links only their own account and receives no owner authority.
  • /pair <code> verifies one exact channel. Generate it for that channel in the agent’s Access & Trust tab, then send it to that bot in a private chat. The code is single-use, expires after 15 minutes, and cannot authorize another Telegram channel.

Do not use /pair in a group. A group exposes the bearer code to other members, and Telegram channel configuration does not provide a separate expected-owner identity for shared-room redemption. Until proof succeeds, ordinary senders are strangers and are ignored; a mutable username or display name is never owner proof.

Features

  • Real-time streaming – Responses stream in real-time using Telegram’s draft message API
  • Rich media – Send and receive images, documents, audio, and video
  • Group chats – Your bot can participate in group conversations
  • Inline commands – Users can interact via Telegram’s built-in command menu

Tips

  • You can customize your bot’s profile picture and description in BotFather using /setuserpic and /setdescription
  • For group chats, make sure to disable privacy mode in BotFather with /setprivacy if you want the bot to see all messages (not just commands)
  • Telegram messages have a 4096 character limit – Lenno automatically splits longer responses into multiple messages