Skip to main content

Telegram Integration

Telegram is one of the easiest and fastest platforms to connect with FahemAI. Follow these simple steps to set up your bot and start interacting with your users.

Setting Up Your Telegram Bot

Get the Bot Token

To create a bot on Telegram, you must communicate with BotFather, the official bot for managing Telegram bots.

  1. Open the Telegram app and search for @BotFather.
  2. Send the /newbot command.
  3. Choose a Name for your bot (this is what users will see).
  4. Choose a Username (must end in "bot", e.g., FahemHelper_bot).
  5. BotFather will provide an API Token. Keep this token secret!
BotFather API Token

Configure in FahemAI

  1. Go to your FahemAI dashboard and select the bot you want to connect.
FahemAI Dashboard
  1. Navigate to Connect > Integrations.
Select Telegram Adapter
  1. Select Telegram from the list of platforms.
Telegram Adapter Selected
  1. Paste your API Token into the token field.
Configure Telegram Token
Stream Reply

You can also enable Stream Reply to allow users to see the response as it's being generated in real-time.

Save and Test

Click Save. Now, search for your bot's username on Telegram and send it a message like "Hello".

Telegram Bot Running
Success

Success! Your bot should now respond immediately based on your trained knowledge base.

Need help?

Need help? If you have any questions, feel free to reach out to us.