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.

Quick navigation: RequirementsUploadDatabaseTelegram BotOwner IDInstallerSMS ProviderFirst TestCronWooCommerceTroubleshooting

1. Before installation

You need a domain or subdomain with HTTPS, PHP 8.1 or newer, and a MySQL/MariaDB database.

Recommended: use a dedicated subdomain such as sms.example.com.

2. Upload and extract the package

cPanel
  1. Open File Manager.
  2. Open the folder for your domain/subdomain.
  3. Upload the product ZIP.
  4. Right-click the ZIP and choose Extract.
  5. Confirm that install.php is available in the domain root.
DirectAdmin
  1. Open File Manager.
  2. Navigate to the selected domain folder.
  3. Upload and extract the ZIP.
  4. Make sure the product files are not accidentally placed inside an extra nested folder.
Enable a valid SSL certificate before continuing. Your site should open over HTTPS without a browser certificate warning.

3. Create the database

In cPanel, open MySQL Databases or MySQL Database Wizard.

  1. Create a database.
  2. Create a database user with a strong password.
  3. Add the user to the database.
  4. Grant ALL PRIVILEGES.
  5. 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

  1. Open the official @BotFather bot in Telegram.
  2. Send /newbot.
  3. Choose the display name.
  4. Choose a username ending in bot.
  5. BotFather will provide a Bot Token. Keep it private.
Your Bot Token is a password. Never publish it in screenshots, public messages or downloadable files.

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

Server Check: confirm all required items pass. Resolve any red item with your hosting provider before continuing.
Application:
  • 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.
Database: enter the database details created in step 3.
Telegram: enter the Bot Token and owner Telegram User ID.
Messaging: choose the default SMS service. You can configure its account credentials after installation. Enter your MilMit License Key if one was supplied with your purchase.
Finish: click Install MilMit Messaging and keep the page open until the success message appears.
After installation, open your Telegram bot and send /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.

  1. Open Providers.
  2. Select your SMS service.
  3. Enter the credentials supplied by that service, such as API Key, username/password, sender ID, sending line or phone number.
  4. Enable the provider.
  5. If you use multiple services, choose your default provider.
  6. If your provider is not listed but offers a REST API, use Custom REST.
Required credentials differ by provider. Obtain the correct API credentials and sender information directly from your SMS service.

8. Send your first test SMS

  1. Open the Telegram bot.
  2. Select Send SMS.
  3. Enter the recipient in international format, e.g. +989121234567.
  4. Enter a short test message.
  5. Review the preview and confirm.
  6. 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

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.

Using one database for multiple MilMit products

You do not need a separate database for every bot. During setup, enter the same database credentials and give each product a unique Table Prefix. MilMit Messaging defaults to mm_msg_. Examples: mm_msg_, mm_shop_, mm_support_. The installer checks the selected database and stops if that prefix is already in use, protecting existing installations.