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

Block chat

POST
/bots/{id}/chats/{bb_chat_id}/block
Use this endpoint to block a specific chat from receiving messages. Once blocked, your bot will no longer receive updates or messages from that chat.

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 --request POST '/bots/123/chats/1234/block?api_key=UKDZu-c68cubrIbniuE2P_nWj0p5r4IHARNrAV-I'

Responses

🟢200Success
application/json
You will get blocked chat details
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
Get chats
Next
Unblock chat
Built with