Skip to content

Telegram Bot Guide

ao3575911 edited this page Oct 30, 2026 · 1 revision

Telegram Bot Guide

Open @langsuite_bot and press Start. The bot speaks the same commands and aliases as the CLI.

Bot demo

Onboarding, handles and workspaces

  1. Press Start. The bot suggests three handles; tap one or send /handle yourname.
  2. Pick a first workspace: tap main, research or notes, or send /space name.
  3. Replies are headed $langsuite/<handle>/<workspace>.
Command Does
/handle new Claim or change your handle
/space other Create or switch workspace
/private on Hide your handle from non-members
/link CODE Link this chat to your CLI account (code from langsuite account link)

Handles are 3–20 characters of a-z 0-9 _, unique ignoring case and look-alike digits (l4ngsuite = langsuite); reserved words are refused.

Everyday commands

Telegram Same as
/q homoiconicity year<1990 (no quotes needed) query
/s scheme similar
/l show haskell lang show
/sn fizzbuzz --lang python snippet
/x My title Save the last result as a finding
/f ls, /f show f1 finding
/n add …, /n ls note
/b status base status
/dc rust ownership, /dc quote python loops docs
/inc rust inclusion

Not in the bot (with reasons shown if you try): ui, workspace, mode, mcp, webhook, account, settings (CLI form), login, logout, usage. The bot has its own /mode that applies per chat.

Groups and roles

Role Who Can
admin Telegram group admins Everything, incl. /role and /settings coderuns on|off
contributor Promoted by an admin Save findings, notes, set digests
viewer Everyone else (default) Read commands

A group admin runs /start to give the group a handle; members share $langsuite/<group>/<workspace>. To promote, an admin replies to someone with /role contributor. Findings record their author. /v python (code on the next lines) runs only after an admin sends /settings coderuns on; until then snippets show as unverified.

Limits: 20 commands a minute per user, 60 per group. Long replies arrive as a file. The bot only reads commands (privacy mode).

Inline mode

Type @langsuite_bot similar haskell in any chat to get result cards. The bot owner must enable it with BotFather /setinline.

Digests

/digest weekly mon 09:00 macros top=5
Digest set: weekly mon 09:00 (Australia/Perth), runs /q macros top=5
/digest
digest: weekly mon 09:00 (Australia/Perth): /q macros top=5

daily or weekly <day>, a time, then a query. /digest off stops it. Contributors and admins can set digests. Times are Australia/Perth; per-chat time zones are tracked in #21.

Try it offline

langsuite bot try "/s scheme --k 3"                 # answer exactly as the bot would, no token
langsuite bot try "/x pick" --group --role viewer   # → Not allowed
langsuite bot commands                              # command list and token status

Running your own bot: Self-hosting the Bot.

Clone this wiki locally