Borang pendaftaran Webinar yang dihost di GitHub Pages supaya Telegram initData berfungsi (tidak melalui iframe GAS HtmlService).
Backend: Google Apps Script (GAS_EXEC_URL dalam config.js).
GAS_EXEC_URL: "https://script.google.com/macros/s/AKfycb.../exec"Guna URL /exec dari Deploy → Manage deployments (bukan /dev).
- Cipta repo baru (contoh
gpe-webinar) - Upload semua fail dalam folder ini ke root repo
- Settings → Pages → Source: branch
main, folder/ (root)
Contoh: https://username.github.io/gpe-webinar/
- Copy
WebinarApi.gske projek Apps Script - Patch
doGet/doPost(rujukPATCH_doGet_doPost.gs) - Script Properties:
WEBINAR_PUBLIC_URL= URL GitHub Pages - Run
setupWebinarMenuButton()— Menu Button mesti point ke GitHub URL
- Force-close Telegram
- Buka bot → Menu Button "Daftar Webinar"
- Bar atas patut papar
@usernameanda - Submit borang penuh
Tambah ?debug=1 pada URL GitHub Pages untuk papar panel diagnostic.
| Fail | Fungsi |
|---|---|
| index.html | Borang |
| styles.css | Tema neon |
| config.js | URL GAS API |
| app.js | Telegram SDK + JSONP + form POST |