Skip to content

Block Car (/block_car)

Block Car

The /block_car command adds a vehicle to the blacklist. All active passes for that plate are automatically cancelled and pass owners are notified. Available to roles: guard, admin.

Block Car Flow

flowchart TD
  A(["/block_car"]) --> B["Enter vehicle plate number"]
  B -->|Already blocked| C["⚠️ Vehicle already blocked"]
  B -->|Plate OK| D["Enter reason for blocking"]
  D --> E["Attach photo (or /skip)"]
  E --> F["Confirm action"]
  F -->|Confirm| G["Vehicle blocked"]
  G --> H["Passes cancelled + Notified"]
  F -->|Cancel| I["❌ Cancelled"]

Step-by-Step

Step 1 — Plate Number

/block_car

Bot response:

🚫 Block Car
Enter the vehicle plate number:

If already blacklisted:

⚠️ Vehicle A777AA99 is already blocked.

Step 2 — Reason

📝 Enter reason for blocking:

Enter the reason, e.g.:

Repeated parking on the lawn

Maximum 1000 characters.

Step 3 — Photo

📷 Attach a photo of the violation
or send /skip to skip.
  • Send a photo to attach it to the blacklist record
  • Send /skip if no photo is available

Step 4 — Confirmation

🚫 Block Confirmation
Plate: A777AA99
Reason: Repeated parking on the lawn
Photo: ✅ attached
Confirm blocking?
[✅ Confirm] [❌ Cancel]

Result

✅ Vehicle blocked
Plate: A777AA99
Passes cancelled: 2
📢 Notified: 1 users

What Happens After Blocking

  1. Vehicle is added to the blacklist
  2. All active passes for this plate are cancelled
  3. Each pass owner receives a Telegram notification

Unblocking

Only an administrator can unblock a vehicle using /unblock_car.