跳转到主要内容
GET
/
api
/
adminlog
Get audit log
curl --request GET \
  --url http://localhost:8080/api/adminlog \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 123,
    "chat_id": 123,
    "bot_id": 123,
    "action": "<string>",
    "actor_id": 123,
    "actor_username": "<string>",
    "target_id": 123,
    "target_username": "<string>",
    "details": "<string>",
    "date": 123
  }
]

授权

Authorization
string
header
必填

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

查询参数

chat_id
integer
必填

Chat ID

limit
integer
默认值:50
必填范围: x <= 200
offset
integer
默认值:0

响应

Audit log entries

id
integer
chat_id
integer
bot_id
integer
action
string

Action performed (e.g., ban, unban, promote, demote, pin, delete)

actor_id
integer

User who performed the action

actor_username
string
target_id
integer

User/message that was acted upon

target_username
string
details
string

Additional action details

date
integer

Unix timestamp