Auto
EN
GET/api/v2/telegram-bots

List Telegram bots

Returns your Telegram bots. Use accountId (Mongo id) as conversationContext.accountId. Bot tokens and webhook secrets are never returned.

When to use it. To get botId/accountId before listing subscribers.

Code example

Correct: Bot list

curl --request GET 'https://raselsms.com/api/v2/telegram-bots' \--header 'X-API-Key: YOUR_API_KEY'

Response example

200 — Bot list

{  "success": true,  "data": {    "page": 1,    "limit": 20,    "hasMore": false,    "bots": [      {        "accountId": "64f1a2b3c4d5e6f7a8b9c0d1",        "name": "Support bot",        "botUsername": "mysupportbot",        "displayName": "Support",        "isActive": true,        "moduleType": "telegram_bot"      }    ]  }}

HTTP request

GET /api/v2/telegram-bots

Request Headers

HeaderTypeDescription
X-API-KeystringYour Rasel API key. Send it on every documented request except inbound webhooks. *

Query parameters

FieldTypeDescription
pageinteger1-based page number. Default 1.
limitintegerPage size. Typical range is 1-50 for conversation context and 1-500 for account lists.

Response Fields

FieldTypeDescriptionExample
successbooleanTrue when the operation succeeded, or when at least one batch recipient succeeded.
datajsonPrimary payload for list and snapshot endpoints.

Status Codes

StatusDescription
200Success.
400Invalid request, validation error, or the resource cannot be used in this state.
401Missing or invalid API key.
403Phone not verified, missing permission, or the account cannot perform this action.
429Rate limit exceeded, or the maximum number of verification attempts was reached.
413Request body exceeds the size limit.

Try it

Parameters

1-based page number. Default 1.

Page size. Typical range is 1-50 for conversation context and 1-500 for account lists.

Request

GET /api/v2/telegram-bots

Response

Example response

{  "success": true,  "data": {    "page": 1,    "limit": 20,    "hasMore": false,    "bots": [      {        "accountId": "64f1a2b3c4d5e6f7a8b9c0d1",        "name": "Support bot",        "botUsername": "mysupportbot",        "displayName": "Support",        "isActive": true,        "moduleType": "telegram_bot"      }    ]  }}