SynqDocs
Management APITelegram groups

Move a Telegram group to another bot, in place

Moves the group to `bot`: `own`, the bot that serves the brand's own groups (the brand's, else the org's), or `synq`, back to Synq's. In place: the group, its gate, every member's standing and its window stay, and nobody is muted, unmuted, removed, approved or declined. Refused (409, with what's missing and the fix) until the new bot is an admin there with every right Synq uses (Invite users via link, Ban users, Pin messages; `GET …/bot` says which it lacks, with the link that adds it), while the group is on that bot already, and where the new bot has a row of its own for the chat. Then the new bot makes a new join-request link (`invite_link`), and posts and pins the window's countdown in its topic where one runs, else the group's Verify message where it had one, at once and without a notification; the old bot's are unpinned and edited to one line pointing there, and the old bot leaves, last (`old_bot_left`). A bot can message only people who let it, so nobody the old bot could message can be messaged by the new one until they tap Verify: the window's next reminder says so once, and its `counts.unreachable` says how many. Moving to an own bot needs a plan with `integration.own_bots` (Scale and up); moving back never does. Recorded as `telegram_group.bot_moved`. Needs `org.integrations.edit`.

POST/v1/orgs/{org}/telegram-groups/{group}/bot

Moves the group to bot: own, the bot that serves the brand's own groups (the brand's, else the org's), or synq, back to Synq's. In place: the group, its gate, every member's standing and its window stay, and nobody is muted, unmuted, removed, approved or declined. Refused (409, with what's missing and the fix) until the new bot is an admin there with every right Synq uses (Invite users via link, Ban users, Pin messages; GET …/bot says which it lacks, with the link that adds it), while the group is on that bot already, and where the new bot has a row of its own for the chat. Then the new bot makes a new join-request link (invite_link), and posts and pins the window's countdown in its topic where one runs, else the group's Verify message where it had one, at once and without a notification; the old bot's are unpinned and edited to one line pointing there, and the old bot leaves, last (old_bot_left). A bot can message only people who let it, so nobody the old bot could message can be messaged by the new one until they tap Verify: the window's next reminder says so once, and its counts.unreachable says how many. Moving to an own bot needs a plan with integration.own_bots (Scale and up); moving back never does. Recorded as telegram_group.bot_moved. Needs org.integrations.edit.

Authorization

bearer
AuthorizationBearer <token>

An org API key (sk_live_…, sk_test_…), or an access token from the Synq issuer (the synq brand, on the accounts host) for this API.

In: header

Path Parameters

org*string

The org's id

Match^org_[0-9a-hjkmnp-tv-z]{26}$
group*string

The Telegram group's id

Match^tgg_[0-9a-hjkmnp-tv-z]{26}$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://api.synq.build/v1/orgs/org_01h455vb4pex5vsknk084sn02q/telegram-groups/tgg_01h455vb4pex5vsknk084sn02q/bot" \  -H "Authorization: Bearer $SYNQ_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "bot": "own"  }'
{  "group": {    "id": "tgg_01h455vb4pex5vsknk084sn02q",    "brand_id": "brd_01h455vb4pex5vsknk084sn02q",    "chat_id": "-1001234567890",    "title": "RODAI Holders",    "username": "string",    "kind": "group",    "status": "connected",    "guard_bot": true,    "rights": {      "invite_users": true,      "restrict_members": true,      "pin_messages": true    },    "member_count": 0,    "invite_link": "string",    "own_bot": true,    "own_bot_id": "string",    "listed": true,    "listed_by": "brand",    "counts": {      "roles": 0,      "gated": true,      "managed": 0    },    "checked_at": "2026-10-21T12:00:00.000Z",    "connected_at": "2026-10-21T12:00:00.000Z"  },  "from": {    "own_bot_id": "string",    "id": "7100000002",    "name": "RODAI",    "username": "RodaiGateBot"  },  "to": {    "own_bot_id": "string",    "id": "7100000002",    "name": "RODAI",    "username": "RodaiGateBot"  },  "old_bot_left": true}