Mini App Todo List untuk Telegram bot π
- β Tambah / centang / hapus todo
- π¨ Tema otomatis mengikuti Telegram (light/dark)
- πΎ Data tersimpan di localStorage
- π± Responsive untuk mobile
- π― Haptic feedback
- π Filter: Semua / Aktif / Selesai
todo-app/
βββ index.html β Halaman utama mini app
βββ style.css β Styling (auto-theme dari Telegram)
βββ app.js β Logic todo + Telegram SDK
βββ bot.py β Bot Telegram (Python)
Upload folder ini (index.html, style.css, app.js) ke:
- Vercel β
npx vercel - Netlify β drag & drop folder
- GitHub Pages β push ke repo, aktifkan Pages
β οΈ Domain wajib HTTPS!
# Install dependency
pip install python-telegram-bot
# Edit bot.py β masukkan token & URL
# BOT_TOKEN = "token dari @BotFather"
# MINI_APP_URL = "https://url-deploy-kamu.com"
# Jalankan bot
python bot.py- Buka @BotFather
/newbotβ buat bot baru/myappsβ Create New App- Masukkan URL web app yang sudah di-deploy
- Selesai! Bot otomatis punya tombol Mini App
- Buka @BotFather di Telegram
- Kirim
/newbot - Ikuti instruksi, beri nama bot
- Copy token yang diberikan