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 will automatically register a webhook with Telegram so your bot starts receiving messages immediately.

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