🕐 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)
- Go to cron-job.org
- Click "Sign up for free"
- Create account and verify email
Step 2: Create New Cronjob
- Click "Create Cronjob"
- Fill in:
Title:
Study Bot Daily ReminderURL:
https://your-project.vercel.app/api/cron/schedule(Replace with your actual URL)
Request Method:
POSTExecution 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_SECRETenv variable (e.g., "your-super-secret-key-123")
- Click "Create"
Verify It Works
- You should see your job in the dashboard
- Click the job and select "Force execution" to test immediately
- Check your Telegram bot - it should send a message to all users!
2️⃣ Upstash (Alternative - 5 minutes)
Step 1: Create Upstash Account
- Go to upstash.com
- Sign up (free tier available)
- Create a new QStash project
Step 2: Create Scheduled Message
- Go to QStash console
- Click "Schedule" → "Create Schedule"
- Fill in:
Endpoint:
https://your-project.vercel.app/api/cron/scheduleSchedule 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- Create schedule
Done! ✅
3️⃣ AWS EventBridge (Advanced - 10 minutes)
If you're already using AWS:
- Go to AWS Console → EventBridge
- Create new rule