跳转到主要内容
POST
/
api
/
admins
/
title
Set admin title
curl --request POST \
  --url http://localhost:8080/api/admins/title \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bot_id": 1,
  "chat_id": -100123456789,
  "user_id": 987654321,
  "title": "Moderator"
}
'
{
  "ok": true
}

授权

Authorization
string
header
必填

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

请求体

application/json
bot_id
integer
必填
chat_id
integer
必填
user_id
integer
必填
title
string
必填

Custom admin title (max 16 characters)

响应

Title set

ok
boolean
示例:

true