Bots Business Api
  1. Chats
Bots Business Api
  • Authentication
    • Login Account
    • Register New User
    • Get telegram login url
    • Telegram login
    • Reset Password
  • User account
    • Get user details
    • Update email
    • Update password
    • Get linked telegram accounts
    • Get telegram link url
    • Get users session token
    • Reset api key
    • Log out all device
  • Bots
    • Create Bot
    • Get Bots
    • Edit Bot
    • Launch or Stop Bot
    • Start CSV import
    • CSV import task status
    • Delete Bot
    • Copy Bot
    • Git export
    • Git import
    • Get installed libraries
    • Install Lib
    • Uninstall lib
    • Get error log
    • Clear error logs
  • Commands
    • Folders
      • Create a folder
      • Delet a folder
      • Get all folders
    • Get Commands
    • Get Command Details
    • Create Command
    • Edit Command
    • Delete Command
  • Broadcast
    • Get broadcast tasks
    • Delete Broadcast task
    • Pause broadcast task
    • Resume broadcast task
  • Chats
    • Get chats
      GET
    • Block chat
      POST
    • Unblock chat
      POST
  • Properties
    • Get properties
    • Delete property
  • Libraries
    • Get libraries
  • Admin Panel
    • Get panels
    • Save panel value
  1. Chats

Get chats

GET
/bots/{id}/chats
Use this endpoint to get private and group chats

Request

Path Params

Query Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '/bots/123/chats?api_key={    "errors": [        "You need to sign in or sign up before continuing."    ]}'

Responses

🟢200Success
application/json
You will get a list of chats in the response.
Body

Example
[
    {
        "id": 149760797,
        "chatid": "7378059553",
        "title": "string",
        "user_id": 42470959,
        "created_at": "2025-10-04T09:08:36.498Z",
        "updated_at": "2025-10-27T07:32:04.618Z",
        "bot_id": 2776468,
        "last_active_at": "2025-10-27T07:31:59.962Z",
        "prohibited_by_admin": false,
        "ad_sended_at": "2025-10-04T11:20:39.712Z",
        "instant_ad_sended_at": "2025-10-04T09:08:37.271Z",
        "last_run_all_task_id": 1211090,
        "user": {
            "id": 42470959,
            "first_name": "ɪ ᴀᴍ ᴄᴄ",
            "last_name": "string",
            "username": "nirjon",
            "telegramid": 7378059553,
            "created_at": "2024-12-05T15:08:32.491Z",
            "language_code": "en"
        }
    }
]
Previous
Resume broadcast task
Next
Block chat
Built with