發送投票

發送投票給機器人

POST
/bots/vote

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired
idstring

Response Body

成功投票 / 已經投票過了

okboolean
messagestring
export interface Response {
  ok?: boolean;
  message?: string;
}
 
curl -X POST "https://dsb.mwtw.net/api/bots/vote" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "1216003625503948830"
  }'
{
  "ok": true,
  "message": "Vote Success || You have already voted today"
}