Перейти к основному содержанию
POST
/
api
/
users
/
ban
Ban a user
curl --request POST \
  --url http://localhost:8080/api/users/ban \
  --header 'Authorization: Bearer <token>'
{
  "ok": true
}

Documentation Index

Fetch the complete documentation index at: https://botmux-dependabot-go-modules-modernc-org-sqlite-1-50-0.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Авторизации

Authorization
string
header
обязательно

API key with bmx_ prefix. Obtain via /api/auth/api-keys.

Параметры запроса

bot_id
integer
обязательно
chat_id
integer
обязательно
user_id
integer
обязательно

Ответ

User banned

ok
boolean
Пример:

true