Admin

Telegram Bots

Set up a Telegram bot for your tenant — create the bot with BotFather, add the token to SigmaDSA, then each team member links their personal Telegram account so the bot acts on their behalf with their permissions.

The Telegram Bots page (/settings/telegram-setup) connects Telegram bot tokens to your tenant. Setup is a three-step flow: create the bot with BotFather → add the token in SigmaDSA → each user links their own Telegram account via the user menu.

Telegram Bots page with Add Bot button and configured bots table highlighted
Telegram Bots: (1) Add Bot, (2) configured bots table with token, webhook URL, status.

Step 1 — Create the bot with BotFather

BotFather is Telegram's official bot for creating other bots. Do this from any Telegram app (mobile or desktop).

Open Telegram and search for @BotFather

In the Telegram app's search bar, type @BotFather. Open the chat with the official verified BotFather (blue checkmark, username @BotFather).

Send /newbot

Send the command /newbot. BotFather replies asking for a friendly name.

Pick a friendly name

Type the display name for your bot (e.g., ABC Loans Helper). Spaces allowed.

Pick a username ending in bot

BotFather asks for the bot's username. It must end with bot — e.g., abc_loans_helper_bot or AbcLoansBot. It must be unique across Telegram.

If the name's taken, BotFather will ask you to try another.

Copy the token BotFather returns

BotFather replies with a message like:

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

Use this token to access the HTTP API:
1234567890:ABCdefGHIjklMNOpqrSTUvwxYZ-12345abcdef

Keep your token secure...

Copy that token string (the 1234567890:ABCdef... part) — that's what SigmaDSA needs in step 2.

Step 2 — Add the token in SigmaDSA

Open Telegram Bots and click Add Bot

/settings/telegram-setupAdd Bot. A modal opens.

Add Telegram Bot modal with Bot Token, Display Name, and Save button highlighted
Add Telegram Bot: (1) Bot Token field (paste the BotFather token), (2) Display Name, (3) Save.

Paste the Bot Token and Save

  • Bot Token — paste the token BotFather gave you.
  • Display Name — friendly name shown in the bots list (e.g., Main Bot).

Click Save. SigmaDSA validates the token with Telegram's API, registers the bot's webhook to https://api.sigmadsa.com/api/webhooks/telegram/<bot-id>, and the bot lands on the table with status Active + a fresh Registered timestamp.

After the bot is configured at the tenant level, every team member who wants to use the bot must link their personal Telegram account. The CRM trusts only linked accounts.

Click the avatar in the top-right header of SigmaDSA. The dropdown opens with Profile / Settings / Link Telegram / Log Out.

User menu open showing Profile, Settings, Link Telegram, Log Out items highlighted
User menu: (1) user avatar in the header, (2) Link Telegram item.

The Link Telegram page opens at /settings/my-telegram. Click Generate link code — a 6-digit code appears (valid for 10 minutes).

Link your Telegram page with Generate link code button and Why link card highlighted
Link your Telegram: (1) Generate link code button, (2) instructions card, (3) Why link explanation.

In the Telegram app, open the chat with your tenant's bot (e.g., @abc_loans_helper_bot). Send the command:

/link 123456

(replace 123456 with the code shown on the page).

The bot replies confirming the link. Your CRM user is now bound to your Telegram account. The bot will act on your behalf with your permissions when you talk to it.

What users can do after linking

Command (typed to the bot)What happens
/startGreeting + main menu.
/helpList available commands.
/search AnandSearches leads and files for the term, returns matches as buttons.
/tasksLists your pending tasks.
/callbacksLists your upcoming callbacks for the day.
/file LF-2026-00001Opens file detail summary.
/lead LD-2026-00021Opens lead detail summary.
(natural-language) "Add a callback with Nitin for 5pm tomorrow"Bot parses the intent and creates the callback.

Notifications also arrive in this chat — when a lead is assigned, a callback is due, a sanction lands, etc.

Manage existing bots

From the bots-list row's Actions:

ActionWhen to use
EditUpdate display name.
Re-register webhookIf notifications stop, re-register to refresh the webhook URL.
DeleteRemoves the bot from the tenant. Existing users stay linked but the bot stops responding.

Multiple bots per tenant

Common setups:

  • One bot for everyone — simplest, works for small teams.
  • One bot per department — sales bot vs ops bot, so notifications stay relevant.
  • Public-facing bot + internal bot — a public bot for customer inquiries (separate from the team bot) so customer messages don't pollute the team's chat.

Each bot has its own token from BotFather; configure each via Add Bot.

Common issues

  • Bot doesn't reply after linking — check the bots-list status is Active and webhook URL is shown. If status is Failed, re-register.
  • "Code expired" error — codes are valid 10 minutes. Generate a new one.
  • Linked but bot says "Not authorised" — the CRM user lacks the permission for the action requested. Check the user's role under Admin → Users.
  • Notifications stopped working — the tenant changed domains or the webhook URL became invalid. Re-register the bot.

Permission gating

  • Adding/editing bots requires LoanCRM.Telegram.Manage — admin role by default.
  • Link Telegram is available to every user — they only link their own account.

Next steps