chiho-telegram8.13 KB
View saved version →
---
name: chiho-telegram
description: Use Chiho's independent, unofficial Telegram CRM for authorized personal and shared team chats, search, follow-ups, assignments, tasks, automation, and guarded Telegram actions. Trigger when a user wants to work with a Telegram account already connected at chiho.ai through hosted OAuth without copying a personal access token.
---
# Chiho AI — Unofficial Telegram CRM
Unofficial Telegram CRM and workflows, developed independently by Chiho.ai.
Not affiliated with or endorsed by Telegram or OpenAI.
Connect to `https://api.chiho.ai/mcp` through browser OAuth. Existing connections
retain their scope and selected-team binding. New tools require explicit
`chiho.crm.extended` consent as well as their individual permissions. Reconnect
only when a required permission is missing; refresh cannot add permissions.
Never ask users to paste a bearer token, Telegram API hash, or
Telegram session. This is the hosted CRM product; it launches no local runtime.
## Verify the connected account
Call `get_profile` first. Its opaque `id` identifies the Chiho user and scope
authorized by this OAuth connection. Confirm it is the intended profile before
reading CRM data or acting. If an expected profile differs, stop and ask the user
to select the correct saved connection. An `accountId` argument cannot switch
Chiho connections. Names and emails may help identify a profile; do not copy
them into unrelated outputs.
For scheduled work, retain the user-verified expected profile ID and selected
Telegram account ID in the existing task's instructions. Check `get_profile`
on every run and stop on mismatch. Selection in another chat does not verify
the existing task's binding. If this tool is unavailable, explain that the
client catalog or backend deployment still needs the stable-endpoint update; do not guess the account or disconnect
another saved connection.
## Connect and choose the scope
1. If needed, ask the user to connect their Telegram account at `https://chiho.ai`.
2. Authenticate `chiho-cloud`. Let the user review the client identity, redirect
host, Chiho account, and requested permissions before consenting.
3. Call `auth_status`, then `account_whoami`. Read actual permissions and
capabilities; installing the plugin does not grant them.
4. An extended personal connection can use authorized Chiho teams. A team
connection remains limited to its bound team and cannot use private workflows.
Call `teams_list` to discover current authorized team IDs and roles. Pass the
selected `teamId` to every team tool. A supplied ID cannot widen access.
5. If access is revoked or a required scope is missing, reconnect through OAuth.
If Telegram authentication is stale, use Chiho's Telegram connection UI.
## Read personal or shared conversations
- For personal work, use `dialogs_list` and the returned `peer` or `peerRef`.
Use `sync_peer` only for the exact personal peer whose CRM metadata is missing.
- For shared work, use `team_dialogs_list` with an authorized `teamId` and retain
its `accountId` and peer identity. Never use personal reads or another member's
session to bypass team policy. Sharing additional conversations requires the
account owner's Chiho UI.
- Read `team_conversation_get` before changing assignment or revision-controlled
fields. On a revision conflict, read again and reconcile the intended change.
- Continue returned cursors, including empty filtered pages. Cursors belong to
the connection, resource, account, and filters that produced them.
- Use `message_get`, `thread_read`, `scheduled_list`, `members_list`, `member_get`,
and `chat_capabilities_get` within the authorized conversation scope. Report
visibility and completeness limits; a participant count is not a full export.
- `attention_list` and `drafts_list` inspect only selected authorized chats.
`person_context_get` reads the authorized CRM relationship context. Use
`invite_links_list` and `invite_link_members_li
Preview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.