API Reference
REST API endpoints
cURL
curl --request POST \ --url http://localhost:8080/api/admins/promote \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "bot_id": 1, "chat_id": -100123456789, "user_id": 987654321, "perms": { "can_delete_messages": true, "can_pin_messages": true, "can_invite_users": true } } '
{ "ok": true }
Grants admin rights with specified permissions to a user. The bot must be admin with promote permission.
API key with bmx_ prefix. Obtain via /api/auth/api-keys.
bmx_
/api/auth/api-keys
Bot ID (must be admin in chat)
Chat ID
User ID to promote
Show child attributes
User promoted
true
Was this page helpful?