Integrations

Telegram

The Telegram integration lets Salem Bot receive customer messages, lets the CRM get notifications about new leads, and lets you manage deals right from the messenger. Connecting takes about five minutes and requires only one thing — the bot token.

In this section

  1. 1What the integration gives you
  2. 2Get a token in @BotFather
  3. 3Open settings in SalemAI
  4. 4Paste the token
  5. 5Enable services
  6. 6Test the connection
  7. 7Save

#What the integration gives you

Telegram is a universal channel for two scenarios at once: you receive notifications from the CRM and finance in your personal chat, while customers message your chatbot without registering in separate systems.

The integration is connected once and automatically becomes available to every SalemAI module you check. There is no need to reconnect it for each service separately.

#Step 1. Get a token in @BotFather

The bot token is a unique string that lets SalemAI send messages on behalf of your bot.

  1. 1

    Open @BotFather

    In Telegram, use search to find the @BotFather account and start a chat with it. This is Telegram's official service for managing bots. @BotFather

    Screenshot

    The @BotFather profile in Telegram — the blue checkmark confirms it is official.

  2. 2

    Create a new bot

    Send the /newbot command. BotFather will ask for a display name (for example "Acme Support") and a username — the username must end with _bot (for example acme_support_bot).

  3. 3

    Copy the token

    In its reply, BotFather will send the token — a long string of digits, a colon, and letters. Copy the whole thing and save it — we will paste it into the SalemAI settings in the next step.

#Step 2. Open SalemAI settings

All integrations are in one place — the "Settings" → "Integrations" section.

  1. 1

    Go to "Settings"

    In the dashboard's left sidebar, scroll to the "Settings" item and click it. It is at the bottom of the list, right above "Activity log".

  2. 2

    Open the "Integrations" section

    Among the settings sections, choose "Integrations". You will see two groups: at the top — "SalemAI services" (built-in connections between modules), below — "External services" by category: "Messengers", "Email", "Calendar", "Accounting", "Development".

    Screenshot

    The "Settings → Integrations" page with the "SalemAI services" and "External services" sections

  3. 3

    Find the Telegram card

    In the "Messengers" category there are three cards: Telegram, WhatsApp, Instagram. On the Telegram card, click the "Configure" button.

    Screenshot

    The Telegram card in the "Messengers" group

#Step 3. Paste the token and choose services

The "Telegram" side panel will open on the right — the entire setup happens inside it.

  1. 1

    Paste the Bot Token

    The "Connection settings" block has a single field — Bot Token. Paste the token you got from @BotFather there. By default the token is hidden with asterisks — to check the value, click the eye icon on the right.

    Screenshot

    The "Telegram" panel with an empty Bot Token field

  2. 2

    Choose which services to enable Telegram for

    Below is the "Enable for services" block with checkboxes: CRM, SalemBot, SarapFinance, SapaAI, KorinisAI, SalemInfo. Check the ones in which you want to use Telegram. For example: for the chatbot and the CRM (so the bot receives messages while the CRM sends notifications about new leads).

#Step 4. Test the connection

Before saving, make sure the token works.

At the bottom of the panel there is a "Test connection" button. Click it — SalemAI will send a test request to the Telegram API with your token. After a couple of seconds, one of two messages will appear:

Screenshot

Connection established successfully

#Step 5. Save

The last step is to click "Save".

At the bottom right of the panel there is a "Save" button. After you click it, the panel will close, the Telegram card in the list will get the "Connected" status (a green dot), and the time of the last sync will appear next to it. Done — Telegram is connected to all the services you checked.

#Which fields you need to fill in

Bot Token
The token from @BotFather — for example 123456:ABC-DEF1234ghIkl-zyx57W2v...

Obtained with the /newbot command in @BotFather

Enable for services
At least SalemBot or CRM — otherwise the integration will sit idle

Can be changed at any time without re-binding the token