Telegram
Back to Documentation

Telegram Bot

Connect your Telegram bot to ReplyBase in seconds. Automate group chats or private messages with AI-powered responses and seamless lead capture.

Setup Process

1

Create Bot via BotFather

BotFather is the official Telegram bot for creating other bots. Open @BotFather in your Telegram app.

  • Send the /newbot command.
  • Follow the prompts to choose a Display Name and a unique Username (must end in "bot").
  • BotFather will provide a Bot Token. Copy this string.

Security First

Keep your Bot Token private. Anyone with access to it can control your bot and read messages.
2

Connect to ReplyBase

Go to your ReplyBase Dashboard:

  • Navigate to Integrations > Telegram.
  • Paste your Bot Token into the field.
  • Click Connect Bot.

ReplyBase will automatically validate the token and register the necessary webhooks with Telegram's servers.

3

Configure Privacy Mode (Optional)

If you plan to add your bot to groups, you may want it to see all messages:

  • Go back to @BotFather.
  • Send /setprivacy.
  • Select your bot and set it to Disabled.
When privacy mode is enabled (default), the bot only sees messages starting with "/" or those mentioning the bot's username.

Advanced Features

Global Webhooks

Automatic registration of your callback URL for instant message delivery.

Media Support

Handle images and documents sent via Telegram directly in the dashboard.

Group Management

Connect a single bot to multiple Telegram groups for team automation.

Troubleshooting Webhooks

If your bot is connected but not responding, verify your webhook status:

curl https://api.telegram.org/bot<YOUR_TOKEN>/getWebhookInfo

Replace <YOUR_TOKEN> with your actual bot token. Look for last_error_message in the response.