Bots Business Api
  1. Chats
Bots Business Api
  • Get started
  • Authentication
    • Sign in
    • Get Telegram login URL
    • Sign up
    • 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
    • Get iteration usage
    • Turn ON or OFF ads
    • Get payment plan
  • Bots
    • Create Bot
    • Get Bots
    • Get single bot
    • Edit Bot
    • Delete Bot
    • Start or Stop bot
    • Start CSV import
    • CSV import task status
    • Copy Bot
    • Git export
    • Git import
    • Get installed libraries
    • Install Lib
    • Uninstall lib
    • Get error log
    • Clear error logs
  • Commands
    • Folders
      • Create a folder
      • Delete 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 admin panels
    • Update admin panel values
  • Demo Store
    • Get store bots
    • Install demo bot
  • Get cloud plans
    GET
  • Schemas
    • Command Schema
    • User Public
    • Create & Edit Bot
    • Bot
  1. Chats

Block chat

POST
https://appapi.bots.business/v2/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 'https://appapi.bots.business/v2/bots/123/chats/1234/block?api_key=UKDZu-c68cubrIbniuE2P_nWj0p5r4IHARNrAV-I'

Responses

🟢200Success
application/json
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"
    }
}
🟢200needremove
🟠401
🟠404
Previous
Get chats
Next
Unblock chat
Built with