=== Nikolaus77 Order Notifications with MAX ===
Contributors: nikolaus77
Tags: woocommerce, notification, max, messenger, order
Requires at least: 5.0
Tested up to: 7.2
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sends WooCommerce new order notifications to the MAX messenger.

== Description ==

This plugin automatically sends notifications to the MAX messenger when a new order is placed in WooCommerce.

= Features =

* Instant notifications about new orders
* Bot token and Chat ID settings in the admin panel
* Test notification to verify the connection
* Support for MAX group chats
* Detailed order information: products, customer, total, delivery address

= Requirements =

* WordPress 5.0 or higher
* WooCommerce 4.0 or higher
* A MAX messenger account with a created bot

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate the plugin through the "Plugins" menu in WordPress
3. Go to "Settings" → "MAX Notifications"
4. Enter the bot token and Chat ID
5. Click "Send test notification" to verify

== Frequently Asked Questions ==

= Where can I get the bot token? =

You can get the token in your MAX partner account, in the "Chatbots" → "Integration" section.

= How do I find the Chat ID? =

Send any message to the bot "Find ID" (`id380124799522_1_bot`) — it will send you your Chat ID.

= Can I send notifications to a group chat? =

Yes. Add the bot to the group, get the group ID via the "Find ID" bot (send it a message inside the group), and enter this ID in the settings.

== External services ==

This plugin connects to the MAX messenger API to send order notifications.

It sends order data to `https://platform-api.max.ru/messages?chat_id=...` when a new order is placed in WooCommerce. The data includes order ID, customer name, order total, order items, and delivery address. The Chat ID is used to determine the recipient.

This service is provided by MAX.
Terms of Use: https://legal.max.ru/ps
Privacy Policy: https://legal.max.ru/pp

== Changelog ==

= 1.0.0 =
* Initial plugin version
* Sending notifications about new orders
* Settings page in the admin panel
* Test notification