Telegram Learning Gateway
A self-hosted PHP Telegram learning gateway with Persian menus, course-routing deep links, authenticated webhooks and privacy-conscious MySQL state. Explore its architecture and installation reference; the static website operates no live Telegram service.
The public site presents source-grounded architecture and Persian menu excerpts. It has no conversation simulator, Telegram client, credentials, database connection or learner data. PHP/MySQL runs only in a separately configured operator environment.
Product capabilities
A focused tool designed to run in your environment.
The independent site presents the real PHP project and its engineering decisions. It is a static product overview and technical case study, with installation documentation for future developers.
- 01Route Persian commands and known deep links through separated PHP modules
- 02Authenticate HTTPS webhooks and reject malformed or oversized updates
- 03Persist minimal route state with parameterized SQL and transactional update receipts
- 04Apply redacted text defaults and explicit retention maintenance
Operating workflow
Follow the architecture from entry to reply.
Configuration and execution happen in your own environment. Review the project README and security guidance before enabling integrations.
- 01Inspect the authenticated webhook boundary
- 02Follow command routing into Persian modules
- 03Review transaction, replay and privacy decisions
- 04Read installation and secure deployment references
Local installation
Run the real software in an environment you control.
These steps reflect the repository's public setup documentation. Review its README for platform-specific details and the latest operational guidance.
Prerequisites
- PHP 8.0–8.4 (64-bit), Composer and Git
- cURL and PDO MySQL extensions; MySQL with InnoDB
- Independent live operation additionally requires operator-controlled PHP hosting, HTTPS and privately configured Telegram credentials
Setup outline
git clone https://github.com/AlirezaBelal/telegram-learning-gateway.gitcd telegram-learning-gatewaycomposer validate --no-check-publishcomposer install --no-interactionPrepare config/.env from config/.env.example: Copy-Item on PowerShell; cp on macOS/Linux.For an independently planned installation, initialize bot_database.sql with a separate schema account; back up existing installations and apply migrations/001_update_receipts.sql as documented.A future independent deployment must expose only public/ over HTTPS and keep private configuration outside the document root.
- This is installation documentation, not a live bot service. No webhook registration or production operation is performed by the website.
- Runtime MySQL privileges are SELECT/INSERT/UPDATE/DELETE. Keep schema credentials separate and protect backups.
- Raw message text is disabled by default. Schedule php scripts/purge_messages.php independently; retention configuration alone deletes nothing. Chat IDs and route state may still be sensitive.
- Committed receipts suppress replay only within retention. Lost acknowledgements or failed commits can repeat a reply; exactly-once delivery is not promised.
- External course/support bot ownership and availability require separate review. The project is a routing layer, not an LMS or AI tutor.
Scope & trust
Source-grounded architecture. No active service.
The public site presents source-grounded architecture and Persian menu excerpts. It has no conversation simulator, Telegram client, credentials, database connection or learner data. PHP/MySQL runs only in a separately configured operator environment.
- Static product overview and technical case study; no live Telegram bot or PHP service is operated here
- No public conversation simulator, chat input or message submission
- External course bots are independent; availability is not guaranteed
- No exactly-once delivery, anonymity or security certification claim
- Actual operation requires independent PHP/MySQL deployment, configuration and maintenance
Run it in your environment
Understand the gateway. Inspect the source.
Read the PHP/MySQL architecture, Persian route definitions and secure installation reference. No bot, webhook or learner service is activated by the website.
