About this product
SELF-HOSTED PHP & MYSQL SCRIPT
HaatKhoroch: Telegram Task & Rewards Mini App
Bring timed tasks, referral rewards and balance management into your Telegram community. HaatKhoroch combines a Bangla Mini App interface with an English admin dashboard, giving you one place to manage members, task rules, reward balances and manual withdrawal requests.
A Telegram Mini App PHP Script for Task-Based Rewards
HaatKhoroch is a self-hosted PHP and MySQL Telegram Mini App designed for community operators, developers and businesses building a task-based rewards platform. Members can open the app from your Telegram bot, view available tasks, collect eligible rewards, invite friends and submit withdrawal requests from their balance.
You control the task links, reward amounts, daily task limit, timer duration, referral activation rules and withdrawal eligibility. The included source code also gives developers a starting point for adapting the interface and workflows to their own project.
Member Features
- Telegram account access: authenticate members using Telegram Mini App initialization data checked by the server.
- Dashboard overview: display the current balance, today's collected rewards, completed task count and daily progress.
- Timed daily tasks: open configured task links and collect rewards after the server-enforced waiting period.
- Referral links and sharing: copy a personal invite link or share it through Telegram.
- Referral activation tracking: show total, active and pending referrals, with optional bonuses after the configured task threshold is met.
- Member leaderboard: display the top 10 active members ranked by completed tasks, together with the current member's position.
- Withdrawal requests: choose an enabled method, enter account details and request an eligible amount.
- Balance transaction history: review task rewards, referral bonuses, withdrawal deductions, refunds and admin adjustments.
- Quick access and updates: reach key screens from the dashboard and view configured banners, announcements and support links.
Admin Dashboard Features
- Platform overview: view member and task statistics, pending withdrawal counts, paid totals and recent requests.
- Task management: create, edit, enable, disable or delete task records, including links, button labels and reward values.
- Member management: search by name, username or Telegram ID; manage account status; and adjust balances with transaction records.
- Manual withdrawal review: review pending requests and record them as paid or rejected. Rejected requests return the reserved amount to the member's balance.
- Withdrawal method settings: manage method names, account labels, instructions, display order and availability. The supplied database includes bKash and Nagad method entries.
- Reward and eligibility rules: configure daily limits, task timers, referral bonuses, minimum withdrawal amounts and optional active-referral requirements.
- Branding and regional settings: update the Mini App name, logo URL, primary and secondary colors, currency display, support link and application timezone.
- Banners and announcements: manage dashboard banner images and scrolling announcement text.
- Bot integration settings: configure the Telegram bot, webhook secret and reminder key, with setup information available in the admin panel.
- Database maintenance: download compressed SQL backups and clean stale task attempts. Financial history is retained by the cleanup routine.
- Admin profile: update the admin name, username and password through the profile screen.
How the Task and Rewards Flow Works
- A member opens your Telegram bot and launches the Mini App.
- The member starts an available task and opens its configured link.
- The server checks the task attempt, elapsed time and daily limit before a reward can be claimed.
- The reward is added to the member's balance and recorded in transaction history.
- Eligible referrals can activate an optional referral bonus.
- The member submits a withdrawal request when the configured requirements are met, and the administrator processes the payment manually.
Withdrawal workflow: HaatKhoroch records and manages manual payout requests. The operator sends the payment through the selected service and updates the request in the admin dashboard. The bKash and Nagad entries collect payment account details; they do not initiate gateway payments.
Technical Overview
| Item | Details |
|---|---|
| Backend | Plain PHP with reusable services and PHP view templates |
| Database | MySQL-compatible database through PDO; SQL import file included |
| Frontend | HTML, CSS, JavaScript, Tailwind CSS CDN and Telegram WebApp JavaScript |
| Interfaces | Responsive Bangla member interface and English admin dashboard |
| Telegram integration | Bot commands, Mini App launch buttons, referral notifications and optional cron-triggered task reminders |
| Included files | PHP application source, Mini App and admin views, SQL database file, rewrite rules and reminder endpoint |
Hosting and Setup Requirements
- A currently supported PHP hosting release. The source uses PHP 8.1+ syntax; confirm compatibility on your chosen hosting environment.
- MySQL or MariaDB with InnoDB support and permission to import the supplied SQL file.
- PHP PDO MySQL and cURL extensions; zlib for compressed database backups. The mbstring extension is recommended for Bangla text handling.
- A domain or subdomain with HTTPS and Apache-compatible rewrite support, or an equivalent server routing configuration.
- Your own Telegram bot token and Mini App configuration, plus correctly configured webhook and reminder secrets.
- Writable application storage and access to Telegram API, Telegram WebApp assets and the frontend CDN.
- A hosting cron scheduler if you want scheduled task reminders.
Frequently Asked Questions
Can I change the app branding and reward rules?
Yes. The admin settings include the app name, logo URL, theme colors, currency display, task limits, timers, referral rules and withdrawal requirements. Further interface or workflow changes can be made in the supplied source code.
How are task rewards checked?
The backend validates the task attempt, elapsed waiting time, active task status and daily claim limit before crediting the balance. This is a timer-based claim workflow; the supplied code does not independently confirm external purchases, follows or other actions on third-party websites.
How do referral bonuses work?
A new member joins through a personal referral link. After that member completes the configured number of tasks, the referral becomes active. If referral bonuses are enabled, the configured bonus is credited once for that activated referral.
Which languages are included?
The supplied member interface is primarily in Bangla, and the admin dashboard is in English. Developers can edit the text in the PHP views for additional language customization.
Is this a hosted service or downloadable source code?
This product is a self-hosted PHP application source package. You provide hosting, a database, HTTPS access and your Telegram bot configuration. Deployment and configuration are required before members can use the app.
Explore HaatKhoroch in action: browse the product screenshots and request a demo to review the dashboard, task flow, referral screens and withdrawal experience before choosing it for your Telegram project.

