跳到内容

Fatal message to Telegram

v1.6

Phil · 2025年5月16日 上架

Sends fatal PHP errors to Telegram using an early MU-plugin loader. Ideal for monitoring production crashes.

正在使用
10+
评分
暂无
累计下载
1,067
最近更新
2026年9月30日
需要 WordPress 5.3+已测试到 7.1.5PHP 7.2+

贡献者

截图

Search for @BotFather in Telegram | Create new bot in @BotFather | Find and copy your chat ID here: https://api.telegram.org/bot your_token /getUpdates
Search for @BotFather in Telegram | Create new bot in @BotFather | Find and copy your chat ID here: https://api.telegram.org/bot your_token /getUpdates
Paste bot token and chat ID into plugin settings: Tools > Fatal message to Telegram.
Paste bot token and chat ID into plugin settings: Tools > Fatal message to Telegram.

Fatal message to Telegram monitors your WordPress site for fatal PHP errors and instantly sends detailed crash reports to your Telegram chat.

Built for developers and sysadmins, this plugin provides early crash detection using a custom MU-plugin loader to hook into PHP before other plugins are even initialized.

Features

  • 📡 Sends fatal PHP errors (E_ERROR, E_PARSE, etc.) directly to Telegram
  • ⚙️ Configurable via WordPress admin (Tools > Fatal message to Telegram)
  • 🧱 Loads early using a mu-plugin for maximum reliability
  • 🔐 Automatically installs/removes the loader during plugin activation/remove
  • 💬 Includes developer-friendly helper functions for manual debugging
  • 🧪 Send test message to verify bot configuration

Helper Functions

Sends a plain string message to your configured Telegram chat.
_fttg(“Just a test string”);

Sends each key-value pair of an array as a separate Telegram message.
_fttg_array([‘a’ => 1, ‘b’ => 2, ‘c’ => ‘hello’]);

External services

This plugin connects to the following external services:

Telegram Bot API

Used to send login alert messages to your Telegram bot/chat.
🔗 Telegram API Docs
📜 Telegram Privacy Policy

Data sent: Chat ID, bot token (from your settings), and message with IP/location/user agent info.
Data is only sent when someone logs in and notifications are enabled.
All data is not stored locally exclude Chat ID, bot token from your settings.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums