MilMit Messaging — Installation & Setup Guide
Version 1.0.0 — Complete Edition — Developed by MilMit
This customer guide takes you from uploading the package to connecting Telegram and sending your first SMS. Normal installation does not require editing PHP source files.
1. Before installation
You need a domain or subdomain with HTTPS, PHP 8.1 or newer, and a MySQL/MariaDB database.
sms.example.com.2. Upload and extract the package
- Open File Manager.
- Open the folder for your domain/subdomain.
- Upload the product ZIP.
- Right-click the ZIP and choose Extract.
- Confirm that
install.phpis available in the domain root.
- Open File Manager.
- Navigate to the selected domain folder.
- Upload and extract the ZIP.
- Make sure the product files are not accidentally placed inside an extra nested folder.
3. Create the database
In cPanel, open MySQL Databases or MySQL Database Wizard.
- Create a database.
- Create a database user with a strong password.
- Add the user to the database.
- Grant ALL PRIVILEGES.
- Keep the database name, username and password for the installer.
On many hosts, the database host is localhost or 127.0.0.1 and the port is 3306. Use the values provided by your host if they are different.
4. Create your Telegram bot
- Open the official @BotFather bot in Telegram.
- Send
/newbot. - Choose the display name.
- Choose a username ending in
bot. - BotFather will provide a Bot Token. Keep it private.
5. Find the Telegram User ID of the owner
The installer needs your numeric Telegram User ID. This is different from a username such as @name.
You can use a known Telegram user-ID lookup utility to view your numeric ID. Only retrieve the numeric ID; never provide your Bot Token, SMS API key or password to third-party lookup bots.
For multiple owners, separate IDs with commas, for example 123456789,987654321.
6. Run the installer
Open:
https://your-domain.com/install.php
- Brand / business name: your business or product display name.
- Language: Persian or English.
- Application URL: the full installation URL, e.g.
https://sms.example.com. - Timezone: your business timezone.
/start.7. Connect an SMS provider
Supported options include MeliPayamak, Kavenegar, IPPanel, SMS.ir, Twilio, Vonage, Telnyx, Plivo, Sinch, Infobip, ClickSend, Bandwidth and Custom REST.
- Open Providers.
- Select your SMS service.
- Enter the credentials supplied by that service, such as API Key, username/password, sender ID, sending line or phone number.
- Enable the provider.
- If you use multiple services, choose your default provider.
- If your provider is not listed but offers a REST API, use Custom REST.
8. Send your first test SMS
- Open the Telegram bot.
- Select Send SMS.
- Enter the recipient in international format, e.g.
+989121234567. - Enter a short test message.
- Review the preview and confirm.
- Check Reports/History for the result.
If it fails, check provider balance, sender/line approval, API credentials and destination restrictions.
9. Scheduled messages and Cron
If you use scheduled SMS, create a Cron Job in your hosting control panel to run the worker regularly. The exact PHP and site paths depend on your hosting account.
Generic example:
/usr/local/bin/php /home/USERNAME/public_html/scripts/worker.php
Running it every minute or every few minutes is suitable for most installations.
10. WooCommerce connection
For WooCommerce, configure a store webhook to:
https://your-domain.com/api/woocommerce.php
The WooCommerce webhook Secret must match the Secret configured for the WooCommerce connection in MilMit Messaging. Test with a sample order before enabling it on a live store.
11. Mini App and management
When using the Telegram Mini App, keep it on the same HTTPS installation domain. The management area provides access to providers, contacts, templates, reports, users and branding settings.
12. Security after installation
- Never publish or download-share your
.envfile. - Keep Telegram and SMS credentials private.
- Back up the database regularly.
- Create a backup before updating the product.
- Immediately rotate any credential that may have been exposed.
13. Troubleshooting
Installer does not open: check file location, PHP version and HTTPS.
Database connection failed: verify database name, username, password, host and privileges.
Bot Token could not be verified: copy the token again from BotFather and make sure the server can make outbound HTTPS requests.
Bot does not answer /start: confirm installation completed successfully and the HTTPS domain is publicly reachable.
SMS fails: check provider balance, API credentials, sender/line, number format and destination-country restrictions.
Scheduled SMS does not run: verify the Cron Job and the PHP/worker path.
Support
MilMit Messaging — Developed by MilMit
Use the official MilMit sales/support channel for updates and product assistance.