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
- Open Telegram and search for @BotFather
-
Send
/newbot - Choose a display name for your bot (e.g., “My Support Agent”)
-
Choose a username ending in
bot(e.g.,my_support_agent_bot) -
BotFather will respond with a bot token that looks like
123456789:ABCDefGHIjklMNOpqrSTUvwxYZ - Copy this token
Connecting to Lenno
- Go to your agent’s Channels tab
- Click Add Channel
- Select Telegram
- Paste the bot token from BotFather
- 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
/setuserpicand/setdescription -
For group chats, make sure to disable privacy mode in BotFather with
/setprivacyif 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