A workspace can have one Discord server and one Telegram group. You can start with either one — onboarding asks which platform to connect first.
Connect a group
1
Get a code
In the dashboard, open Bot settings → Telegram and click Get a code. You get a one-time code like
ABCD-2345. It works for 15 minutes; requesting a new code cancels the old one.2
Add the bot to your group
Add @relayncm_bot to your group and make it an administrator, so it can read every message.
3
Send /connect
In the group, a group administrator sends
/connect followed by the code, for example /connect ABCD-2345. The dashboard confirms the connection within a few seconds.Choose where the bot answers
- Group without topics — the whole group is one channel. The bot answers anywhere in it.
- Group with topics (a forum) — each topic is a channel. Pick the topics the bot should watch, for example Support and General, and it answers inside the topic where the question was asked. Off-topic stays untouched.
Experts: who the bot learns from
Experts are the Telegram version of trusted members in auto-learning.- Group administrators are experts automatically. Relayn fetches the admin list when you connect and refreshes it every few minutes.
- Add anyone else: a group administrator replies
/expertto one of their messages. Reply/unexpertto take them off the list. - Remove an administrator from the expert list on the Telegram card. A refresh won’t add them back.
Import your group’s history
Telegram doesn’t let bots read past messages, so Relayn starts with your history through a chat export:- Open the group in Telegram Desktop.
- Click ⋮ in the top right → Export chat history.
- Untick photos, videos and files, and pick the format Machine-readable JSON.
- In the dashboard, open Auto-learning, start the history import, switch to the Telegram tab, and upload the
result.jsonfile.
Announcement channels
Add your Telegram announcement channel to the Calendar so the bot knows your events and news:- Make the Relayn bot an administrator of the channel. Telegram only delivers a channel’s posts to its admins.
- On the Calendar page, paste the channel’s public link, like
https://t.me/yourchannel. Invite links (t.me/+…) don’t work.
result.json); the last 21 days are indexed.
What works in Telegram
The dashboard shows both platforms together. On Overview, Replies, and Analytics, use the All / Discord / Telegram switch to look at one platform.