Title: Hamid Pulse Notifications for Telegram and Bale
Author: Hamidreza Moghaddam
Published: <strong>2026 年 9 月 6 日</strong>
Last modified: 2026 年 9 月 6 日

---

搜索插件

![](https://ps.w.org/hamid/assets/banner-772x250.png?rev=3683122)

![](https://ps.w.org/hamid/assets/icon-256x256.png?rev=3683122)

# Hamid Pulse Notifications for Telegram and Bale

 作者：[Hamidreza Moghaddam](https://profiles.wordpress.org/mrhamidreza/)

[下载](https://downloads.wordpress.org/plugin/hamid.1.0.5.zip)

 * [详情](https://cn.wordpress.org/plugins/hamid/#description)
 * [评价](https://cn.wordpress.org/plugins/hamid/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/hamid/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/hamid/#developers)

 [支持](https://wordpress.org/support/plugin/hamid/)

## 描述

Hamid Pulse sends rich, Markdown-formatted notifications to **Telegram**, **Bale**,
or **both at the same time** whenever something happens on your WordPress site. 
Every platform keeps its own isolated configuration — bot token, recipients, and
endpoint — so you can mirror alerts to two messengers at once.

Receive notifications when:

 * A post is published or submitted for review (any post type).
 * A new user registers.
 * A user signs in — or someone fails to (passwords are never collected or sent).
 * A new comment arrives, with optional spam filtering.
 * Contact Form 7, WPForms, Ninja Forms or Elementor Pro forms are submitted.
 * Visitors subscribe or unsubscribe through Mailchimp (MC4WP).
 * A WooCommerce order arrives (configurable trigger), an order status changes, 
   products are added/removed from the cart, or stock runs low.
 * WP Activity Log (WSAL) records an event.

Highlights:

 * **Multi-platform dispatcher** — Telegram Bot API and Bale Bot API (~95% identical)
   share one abstract driver, so both platforms behave identically while keeping
   independent settings.
 * **Markdown formatting** — every message uses `parse_mode: Markdown` with safe
   escaping helpers for dynamic content.
 * **Async queue** — queued delivery via WP-Cron keeps checkout, forms and logins
   fast; messages flush in background batches.
 * **Send test message** button and a **Find chat IDs** tool right inside the settings,
   for each platform.
 * **Diagnostics** — a delivery log with timestamps, HTTP codes and API error details,
   plus a manual queue flush.
 * **Proxy support** — custom API endpoints per platform and an HTTP proxy for restricted
   hosting environments.
 * **Privacy first** — IP geolocation is strictly opt-in (off by default) and cached.
 * **Developer friendly** — `pulse_send_message` action, `pulse_notification_text`
   filter, and a `[pulse_notify]` shortcode.
 * **AI ready** — optional Abilities API / MCP integration so authorized agents 
   can send notifications.

#### Setup

 1. Create a bot: with @BotFather on Telegram, or @BotFather in Bale.
 2. Copy the bot token into the Pulse  Connections tab and enable the platform.
 3. Enter recipient chat IDs (users, groups or channels), or use the built-in **Find
    chat IDs** tool.
 4. Press **Send test message** — if it arrives, you are done.

### External services

This plugin connects to third-party APIs to deliver notifications. No data is sent
to these services unless you configure a bot token, enable a platform, and a notification
event occurs (or you use the test-message / find-chat-IDs tools in the admin).

#### Telegram Bot API

Used to send notification messages to Telegram chats, groups, or channels you configure,
and to list recent chats when you use **Find chat IDs**.

When a notification is triggered (or you send a test message), the plugin sends 
the message text, your bot token, recipient chat ID(s), and any optional inline 
button URL to `api.telegram.org` (or your custom endpoint) over HTTPS.

Telegram: [Terms of Service](https://telegram.org/tos), [Privacy Policy](https://telegram.org/privacy).

#### Bale Bot API

Used for the same purposes on the Bale messenger via `tapi.bale.ai` (or your custom
endpoint).

When a notification is triggered (or you use the admin tools), the plugin sends 
the message text, your bot token, recipient chat ID(s), and any optional inline 
button URL to the Bale Bot API over HTTPS.

Bale: [Terms of Service](https://bale.ai/terms), [Privacy Policy](https://bale.ai/terms)(
privacy section within the terms page).

#### ip-api.com (optional)

Used only when you enable **Enrich alerts with IP geolocation** on the Delivery &
Privacy tab (disabled by default).

When enabled and a notification includes an IP address, the visitor’s public IP 
is sent to `ip-api.com` over HTTP to resolve city, region, country, and ISP. Results
are cached locally in WordPress transients for one hour.

ip-api.com: [Terms of use and privacy](https://ip-api.com/docs/legal).

## 安装

 1. Upload the `hamid` folder to `/wp-content/plugins/`, or install the plugin through
    the WordPress Plugins screen.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Open the **Hamid Pulse** menu in your dashboard and configure your Telegram and/
    or Bale bot in the Connections tab.

## 常见问题

### How do I get a bot token?

Telegram: open [@BotFather](https://t.me/botfather), send `/newbot` and follow the
prompts; the token looks like `123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ`.
 Bale: open@
BotFather inside Bale and repeat the same steps — Bale’s Bot API mirrors Telegram’s,
and Pulse supports both through the same interface.

### How do I find my chat ID?

Send any message to your bot, then press **Find chat IDs** on the Pulse  Connections
tab. Pulse lists every recent chat (users, groups, channels) with the exact ID to
paste into the settings. Group IDs are negative numbers; public channels can be 
addressed as `@channelname`.

### Can I use Telegram and Bale at the same time?

Yes. Enable both platforms in the Connections tab; each keeps its own token, recipients
and endpoint, and every notification is mirrored to both.

### Will notifications slow down my site?

No. Set **Delivery mode** to _Queued via WP-Cron_ on the Delivery & Privacy tab:
outgoing messages are stored in a lightweight queue and flushed in background batches,
so checkout, forms and logins never wait on the Bot API.

### My host blocks api.telegram.org — what can I do?

Two options: set a **Custom API endpoint** per platform (any mirror that speaks 
the Bot API), or configure the HTTP **proxy** on the Delivery & Privacy tab.

### Can other plugins send notifications?

Yes — fire the public action from anywhere:

    ```
    do_action( 'pulse_send_message', 'Hello from my plugin!' );
    ```

With an inline button: `do_action( 'pulse_send_message', 'New order!', 'View', '
https://example.com/order/1' );`
 With a recipient override: `do_action( 'pulse_send_message','
Hello', '', '', '123456789' );`

The message text can be adjusted with the `pulse_notification_text` filter.

### Is there a shortcode?

[pulse_notify message=”Backup finished” site=”1″ ip=”1″] — attributes: `message`(
required), `site`, `ip`, `platform` (`telegram`, `bale` or `both`), `button_label`,`
button_url`. Tokens cannot be overridden from shortcodes by design.

### Does Pulse collect my data?

No telemetry, no tracking, no phoning home. IP geolocation is off by default; when
you enable it, IPs are looked up at ip-api.com and cached locally for one hour. 
Please make sure your own privacy policy covers this.

### Does it support AI agents / MCP?

Optionally. With the [Abilities API](https://github.com/WordPress/abilities-api)
and [MCP Adapter](https://github.com/WordPress/mcp-adapter) plugins installed, the“
Send Pulse notification” ability is exposed at `/wp-json/pulse/mcp` for authorized
agents (administrator capability required).

### Is it compatible with WooCommerce HPOS?

Yes. All order data is read and written through the WC_Order CRUD API.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Hamid Pulse Notifications for Telegram and Bale」是开源软件。 以下人员对此插件
做出了贡献。

贡献者

 *   [ Hamidreza Moghaddam ](https://profiles.wordpress.org/mrhamidreza/)

「Hamid Pulse Notifications for Telegram and Bale」插件已被翻译至 1 种本地化语言。
感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/hamid/contributors)
为本插件所做的贡献。

[帮助将「Hamid Pulse Notifications for Telegram and Bale」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/hamid)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/hamid/)，查看[SVN仓库](https://plugins.svn.wordpress.org/hamid/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/hamid/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/hamid/)。

## 更新日志

#### 1.0.5

 * Normalize PHP file line endings for compatibility with plugin review tools.

#### 1.0.4

 * Restrict uninstall cleanup to this plugin’s explicitly named options and scheduled
   event.

#### 1.0.3

 * Rename the display name and text domain to use the distinctive Hamid identifier.
 * Request the new WordPress.org plugin slug `hamid`.
 * Document third-party services (Telegram, Bale, ip-api.com) in the readme.
 * Exclude WordPress.org directory assets (banners/icons) from the plugin package.

#### 1.0.1

 * Fix missing translators comment for the plural chat-count string (WordPress.WP.
   I18n.MissingTranslatorsComment).
 * Silence false-positive nonce verification warning in the AJAX connection tester(
   nonce is verified in verify_request()).
 * Silence direct-database-query warnings in uninstall.php (intentional one-off 
   cleanup query).

#### 1.0.0

 * Initial release.
 * Multi-platform dispatcher for Telegram and Bale with isolated per-platform settings.
 * Markdown-formatted messages with safe escaping helpers.
 * Async WP-Cron delivery queue with manual flush and delivery diagnostics.
 * Notifications for posts, users, sign-ins, comments, forms (CF7, WPForms, Ninja
   Forms, Elementor Pro, MC4WP), WooCommerce and WP Activity Log.
 * Built-in connection tester and chat ID finder per platform.
 * Custom API endpoints and HTTP proxy support.
 * Optional Abilities API / MCP integration.
 * `[pulse_notify]` shortcode and `pulse_send_message` action for developers.

## 额外信息

 *  版本 **1.0.5**
 *  最后更新：**3 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.1.2**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/hamid/) 和 [Persian](https://fa.wordpress.org/plugins/hamid/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/hamid)
 * 标签
 * [bale](https://cn.wordpress.org/plugins/tags/bale/)[messenger](https://cn.wordpress.org/plugins/tags/messenger/)
   [notification](https://cn.wordpress.org/plugins/tags/notification/)[telegram](https://cn.wordpress.org/plugins/tags/telegram/)
   [woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/hamid/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/hamid/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/hamid/reviews/)

## 贡献者

 *   [ Hamidreza Moghaddam ](https://profiles.wordpress.org/mrhamidreza/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/hamid/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://hamidrezamoghaddam.ir/)