=== Baza Live Chat ===
Contributors: bazadevelopers
Donate link: https://www.paypal.com/donate/?business=A9R843N82XG3G&no_recurring=0&currency_code=USD
Tags: live chat, telegram, live support, chat widget, customer support
Requires at least: 5.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Live chat with Telegram integration. Visitors chat on your site — you reply in Telegram. Self-hosted, no monthly fees.

== Description ==

**Baza Live Chat** connects your WordPress site to Telegram — self-hosted, no third-party servers, no data sharing. Visitors chat on your site and you reply directly from Telegram.

### Features:

* Live chat widget embedded on your WordPress site
* Visitors send messages - you reply via Telegram bot
* Real-time polling for instant message delivery
* Webhook support for instant operator replies
* Sound notifications for new messages
* GDPR consent support
* IP blocking, rate limiting, and a visitor activity log
* Custom colors and avatar for the chat widget
* Auto-questions for quick replies
* Static mode - embed chat inline anywhere

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/baza-live-chat/` or install via the WordPress plugin screen.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Go to **Baza Live Chat → Settings** and create a Telegram bot via [@BotFather](https://t.me/BotFather).
4. Enter your Bot Token and Chat ID, click **Save**.
5. Click **Set Webhook** to connect Telegram to your site.
6. The chat widget will appear on your site automatically.

== Frequently Asked Questions ==

= Do I need a paid account? =

No. Everything described here is included in the plugin. You only need a Telegram bot, which is free to create with @BotFather.

= Is my data stored on your servers? =

No. All chat data is stored in your own WordPress database. Messages go directly from your site to your Telegram bot.

= Does it work with page builders? =

Yes. Use the `[baza_live_chat]` shortcode to embed the chat anywhere, including Gutenberg, Elementor, and other page builders. Add `static="true"` to show it as an inline block.

== External services ==

This plugin connects to the following external services. Please review their terms and privacy policies before use.

= Telegram Bot API (api.telegram.org) =
Required for core chat functionality. Every visitor message and operator reply is transmitted through Telegram's servers using the bot token you configure.
* Terms of Service: https://telegram.org/tos
* Privacy Policy: https://telegram.org/privacy

== Source code ==

Unminified JavaScript source files are included in the plugin under `assets/js/`. The minified files (`*.min.js`) are generated from the files of the same name without `.min` using Terser (`npx terser blc.js -c -m -o blc.min.js`).
