🕐 Setting Up Daily 7 AM Reminders

Your bot is ready to send automatic reminders at 7 AM every day. Here's how to set it up.

1️⃣ cron-job.org (Easiest - 5 minutes)

Step 1: Sign Up (Free)

  1. Go to cron-job.org
  2. Click "Sign up for free"
  3. Create account and verify email

Step 2: Create New Cronjob

  1. Click "Create Cronjob"
  2. Fill in:
Title:
Study Bot Daily Reminder
URL:
https://your-project.vercel.app/api/cron/schedule

(Replace with your actual URL)

Request Method:
POST
Execution Times:
  • • Click "Advanced"
  • • Set to: Every day at 7:00 AM (select your timezone)
HTTP Headers (Important!):
  • • Click "Add Header"
  • Key: x-cron-secret
  • Value: The secret from your CRON_SECRET env variable (e.g., "your-super-secret-key-123")
  1. Click "Create"

Verify It Works

  1. You should see your job in the dashboard
  2. Click the job and select "Force execution" to test immediately
  3. Check your Telegram bot - it should send a message to all users!

2️⃣ Upstash (Alternative - 5 minutes)

Step 1: Create Upstash Account

  1. Go to upstash.com
  2. Sign up (free tier available)
  3. Create a new QStash project

Step 2: Create Scheduled Message

  1. Go to QStash console
  2. Click "Schedule" → "Create Schedule"
  3. Fill in:
Endpoint:
https://your-project.vercel.app/api/cron/schedule
Schedule Pattern (Cron):
0 7 * * *

(This means: 7:00 AM every day)

Headers:
  • • Click "Add Header"
  • Key: x-cron-secret
  • Value: Your secret key
Method:
POST
  1. Create schedule

Done! ✅

3️⃣ AWS EventBridge (Advanced - 10 minutes)

If you're already using AWS:

  1. Go to AWS Console → EventBridge
  2. Create new rule