Skip to content

Setup Telegram Bot

Complete guide to creating and configuring your Telegram bot.

Create Your Bot

Step 1: Open BotFather

  1. Open Telegram
  2. Search for @BotFather
  3. Start a chat

Step 2: Create New Bot

Send the command:

/newbot

BotFather will ask for:

  1. Bot name - Display name (e.g., "My Store Assistant")
  2. Bot username - Unique identifier ending in bot (e.g., mystorebot)

Step 3: Save Your Token

BotFather will respond with your API Token:

Done! Congratulations on your new bot. You will find it at t.me/mystorebot.

Use this token to access the HTTP API:
123456789:ABCdefGHIjklMNOpqrSTUvwxYZ

⚠️ Keep this token secret! Anyone with the token can control your bot.

Connect to KLEO

Step 1: Open Dashboard

  1. Go to Shopify Admin → Apps → KLEO Chat
  2. Navigate to Telegram Settings

Step 2: Enter Token

  1. Paste your bot token
  2. Click Save & Activate

Step 3: Verification

KLEO will:

  1. Validate the token with Telegram
  2. Configure the webhook
  3. Enable your bot

You'll see a success message with your bot's username.

Customize Your Bot

Bot Profile

In BotFather, you can customize:

/setdescription - What users see before starting
/setabouttext - Shown in bot profile
/setuserpic - Bot avatar (use your store logo!)

Commands Menu

Set up command hints:

/setcommands

Then send:

start - Start shopping
products - Browse products
cart - View cart
help - Get help

Test Your Bot

  1. Open Telegram
  2. Search for your bot username
  3. Click Start
  4. Try asking about a product!

Troubleshooting

IssueSolution
"Invalid token"Check for typos, get new token from BotFather
Bot not respondingVerify webhook in dashboard
Slow responsesCheck server status

Next Steps