Skip to main content
POST
/
v1
/
bot
/
batch
curl -X POST https://portal-api.7331.org/v1/bot/batch \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-bot-api-key" \
  -d '{
    "commands": [
      {
        "command": "help",
        "count": 1,
        "user_id": 42,
        "group_id": 10,
        "timestamp": "2025-01-15T12:00:00Z"
      },
      {
        "command": "stats",
        "count": 1,
        "user_id": 42,
        "group_id": 10,
        "timestamp": "2025-01-15T12:01:00Z"
      }
    ]
  }'
{
  "message": "Batch update processed successfully",
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2025-01-15T12:30:00Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.7331.org/llms.txt

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

X-API-Key
string
required
Bot API key.
commands
object[]
required
Array of command execution records.

Response

message
string
required
Success message.
curl -X POST https://portal-api.7331.org/v1/bot/batch \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-bot-api-key" \
  -d '{
    "commands": [
      {
        "command": "help",
        "count": 1,
        "user_id": 42,
        "group_id": 10,
        "timestamp": "2025-01-15T12:00:00Z"
      },
      {
        "command": "stats",
        "count": 1,
        "user_id": 42,
        "group_id": 10,
        "timestamp": "2025-01-15T12:01:00Z"
      }
    ]
  }'
{
  "message": "Batch update processed successfully",
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2025-01-15T12:30:00Z"
}