=== Hamidreza Order Notifier ===
Contributors: mrhamidreza
Tags: woocommerce, telegram, bale, notification, order
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.8
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Send WooCommerce order notifications to Telegram or Bale.

== Description ==

Hamidreza Order Notifier sends WooCommerce order status notifications directly to your Telegram or Bale bot chat.

Features:
- Send notifications for selected WooCommerce order statuses
- Support for Telegram and Bale
- Simple settings page in WordPress admin
- Optional API error logging
- Translation-ready

== External services ==

This plugin connects to third-party messaging APIs to deliver WooCommerce order notifications to a chat configured by the site administrator.

= Telegram Bot API =

When Telegram is selected in the plugin settings, the plugin sends an HTTP POST request to the Telegram Bot API (`https://api.telegram.org/bot`) each time a WooCommerce order reaches one of the enabled order statuses.

The request includes the bot token and chat ID configured in the plugin settings, along with a notification message containing order details such as order ID, status, customer name, phone number, order total, date, and purchased items.

This service is provided by Telegram: [Terms of Service](https://telegram.org/tos), [Privacy Policy](https://telegram.org/privacy).

= Bale Bot API =

When Bale is selected in the plugin settings, the plugin sends an HTTP POST request to the Bale Bot API (`https://tapi.bale.ai/bot`) each time a WooCommerce order reaches one of the enabled order statuses.

The request includes the bot token and chat ID configured in the plugin settings, along with a notification message containing order details such as order ID, status, customer name, phone number, order total, date, and purchased items.

This service is provided by Bale: [Terms of Service](https://bale.ai/terms), [Privacy Policy](https://bale.ai/terms#s9).

== Installation ==

1. Upload the `hamidreza` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the "Plugins" menu in WordPress.
3. Make sure WooCommerce is installed and active.
4. Go to `Settings > Order Notifier`.
5. Enter your bot token and chat ID.
6. Enable notifications and choose the order statuses you want.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. WooCommerce must be installed and active.

= Does it support Bale? =

Yes. You can choose Telegram or Bale from the plugin settings.

= Where do I find my Telegram bot token? =

Create a bot using BotFather in Telegram. BotFather gives you the token.

== Screenshots ==

1. Plugin settings page
2. Example order notification message

== Changelog ==

= 1.0.8 =
* Prefix plugin option and settings identifiers with hamidreza_ for WordPress.org compliance.
* Migrate stored settings from the legacy hrwcn_settings option key.

= 1.0.7 =
* Remove bundled translation files; translations are managed through translate.wordpress.org.
* Document Telegram and Bale external services in the readme.

= 1.0.6 =
* Initial release.

== Upgrade Notice ==

= 1.0.8 =
Renames internal settings identifiers and migrates existing saved settings automatically.

= 1.0.7 =
Removes bundled translation files and adds external service documentation.

= 1.0.6 =
Initial release.
